splitpane

Javafx : SplitPane resize children

旧时模样 提交于 2019-12-11 04:42:23
问题 I fave an .fxml file, in which I have added some TitledPane but I cannot resize them in the application. Here is the code: <ScrollPane AnchorPane.topAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"> <SplitPane orientation="VERTICAL" fx:id="splitPane"> <TitledPane> <TextArea fx:id="taTop" wrapText="true" editable="false" prefHeight="100"/> </TitledPane> <TitledPane> <TableView fx:id="tableFrist" minHeight="120" maxHeight="120"> <columns>

Animate splitpane divider

余生颓废 提交于 2019-12-02 07:25:20
问题 I have a horizontal split pane, and i would like to on button click, change divider position, so that i create sort of "slide" animation. divider would start at 0 (complete left) and on my click it would open till 0.2, when i click again, it would go back to 0; now i achived this, i just use spane.setdividerPositions(0.2); and divider position changes, but i cant manage to do this slowly i would really like that slide feeling when changing divider position. Could anyone help me ? all examples

JavaFX - SplitPane, resize & proportions

谁都会走 提交于 2019-12-01 16:08:45
How can I achieve proportional resize of whole SplitPane? public class JfxSplitPaneTest extends Application { @Override public void start(Stage stage) throws Exception { SplitPane split = new SplitPane(); StackPane child1 = new StackPane(); child1.setStyle("-fx-background-color: #0000AA;"); StackPane child2 = new StackPane(); child2.setStyle("-fx-background-color: #00AA00;"); StackPane child3 = new StackPane(); child3.setStyle("-fx-background-color: #AA0000;"); split.getItems().addAll(child1, child2, child3); //split.setDividerPositions(0.1f, 0.6f, 0.9f) stage.setScene(new Scene(split, 400,

JavaFX - SplitPane, resize & proportions

两盒软妹~` 提交于 2019-12-01 14:58:49
问题 How can I achieve proportional resize of whole SplitPane? public class JfxSplitPaneTest extends Application { @Override public void start(Stage stage) throws Exception { SplitPane split = new SplitPane(); StackPane child1 = new StackPane(); child1.setStyle("-fx-background-color: #0000AA;"); StackPane child2 = new StackPane(); child2.setStyle("-fx-background-color: #00AA00;"); StackPane child3 = new StackPane(); child3.setStyle("-fx-background-color: #AA0000;"); split.getItems().addAll(child1,