Overview
Drop-in replacement for a JavaFX Scene that will automatically resize any of its children that extend Resizable to fill the Scene bounds. This is particularly useful when used together with a resizable layout that should fill the scene bounds, such as the following example:
the code:
import org.jfxtras.scene.*;
import org.jfxtras.scene.layout.*;
import javafx.ext.swing.*;
XScene {
width: 200
height: 200
content: XGrid {
rows: Row {
cells: SwingList {
items: SwingListItem {text: "Sample Item"}
}
}
}
}produces:

Profile: common
Variable Summary
| access | name | type | Can Read | Can Init | Can Write | Default Value | description |
|---|---|---|---|---|---|---|---|
| heightInitialized | Boolean | ||||||
| initialized | Boolean | ||||||
| internalHeight | Number | ||||||
| internalWidth | Number | ||||||
| public | menuBar | Node | ![]() | ![]() | ![]() | ||
| needsUpdate | Boolean | ||||||
| public | nodeHPos | HPos | ![]() | ![]() | ![]() | HPos.CENTER |
The horizontal position of each node within the XScene.
The horizontal position of each node within the XScene. This may be overridden for individual nodes by setting the hpos variable on the node's layoutInfo variable. HPos.CENTER |
| public | nodeMargin | Insets | ![]() | ![]() | ![]() |
The default margin the nodes the scene if they do not specifically override this.
The default margin the nodes the scene if they do not specifically override this. If you want to set a margin around the Grid itself, use layoutInfo instead. |
|
| public | nodeVPos | VPos | ![]() | ![]() | ![]() | VPos.CENTER |
The vertical position of each node within the XScene.
The vertical position of each node within the XScene. This may be overridden for individual nodes by setting the vpos variable on the node's layoutInfo variable. VPos.CENTER |
| prefHeights | Number[] | ||||||
| prefWidths | Number[] | ||||||
| updatingContent | Boolean | ||||||
| widthInitialized | Boolean |

