I can not extend the height of the TableView , I layout'ы tried all the layout'ы — nothing helps. I do not understand what the problem is.
I insert it into the center border pan 'and another window, the buttons are adjusted, the table is not. In height, everything stands on MAX_VALUE . Help me please.
<?xml version="1.0" encoding="UTF-8"?> <?import com.jfoenix.controls.*?> <?import java.lang.*?> <?import javafx.geometry.*?> <?import javafx.scene.control.*?> <?import javafx.scene.layout.*?> <?import com.jfoenix.controls.JFXButton?> <?import javafx.geometry.Insets?> <?import javafx.scene.control.Pagination?> <?import javafx.scene.control.TableView?> <?import javafx.scene.layout.BorderPane?> <?import javafx.scene.layout.HBox?> <?import javafx.scene.layout.StackPane?> <?import javafx.scene.layout.VBox?> <fx:root maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="400.0" prefWidth="600.0" type="BorderPane" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"> <bottom> <HBox prefHeight="49.0" prefWidth="600.0" BorderPane.alignment="CENTER"> <children> <JFXButton fx:id="btnAdd" alignment="TOP_LEFT" prefHeight="25.0" prefWidth="160.0" text="ДОДАТИ"> <HBox.margin> <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" /> </HBox.margin> </JFXButton> <JFXButton fx:id="btnEdit" alignment="TOP_LEFT" prefHeight="25.0" prefWidth="160.0" text="ЗМІНИТИ"> <HBox.margin> <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" /> </HBox.margin> </JFXButton> <JFXButton fx:id="btnDelete" alignment="TOP_LEFT" prefHeight="25.0" prefWidth="163.0" text="ВИДАЛИТИ"> <HBox.margin> <Insets bottom="10.0" left="10.0" right="10.0" top="10.0" /> </HBox.margin> </JFXButton> </children> </HBox> </bottom> <center> <VBox> <children> <VBox VBox.vgrow="ALWAYS"> <children> <TableView fx:id="tableView" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" VBox.vgrow="ALWAYS" /> <Pagination fx:id="pagination" VBox.vgrow="ALWAYS" /> </children> </VBox> </children> </VBox> </center> </fx:root> I add it here through dictionaryBorderPane.setCenter ((Node) mainListView.getSelectionModel (). GetSelectedItem ());
<Tab fx:id="tabDictionary" onSelectionChanged="#handleDictionaryTab" text="Довідники"> <content> <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0"> <children> <BorderPane fx:id="dictionaryBorderPane" prefHeight="975.0" prefWidth="1920.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> <left> <JFXListView fx:id="mainListView" prefWidth="300.0" BorderPane.alignment="CENTER" /> </left> </BorderPane> </children></AnchorPane> </content> </Tab> 