Questions tagged [gridpane]

GridPane lays out its children within a flexible grid of rows and columns

GridPane lays out its children within a flexible grid of rows and columns. If a border and/or padding is set, then its content will be layed out within those insets. A child may be placed anywhere within the grid and may span multiple rows/columns. Children may freely overlap within rows/columns and their stacking order will be defined by the order of the gridpane's children list (0th node in back, last node in front).

GridPane may be styled with backgrounds and borders using CSS

349 questions
-2
votes
2 answers

Problems with Gridpane fxml layout

I have a fxml dialog in SceneBuilder, which contains a Gridpane on the right side of a Splitpane contained in a BorderPane. I have two issues with this dialog that relate to each other. Problem #1 is the width of the last column doesn't behave…
Alex
  • 1,387
  • 2
  • 9
  • 14
-2
votes
1 answer

How to give CSS attributes to new labels that have not been fully defined?

I have a system of which creates a new Label in Javafx that is predefined but is just created on the spot whenever a method is ran. I want to be able to edit the background color of the label(s) that are…
user10238840
-2
votes
2 answers

Having trouble using getChildren()

Im working on a project for school and I'm having trouble adding a child pane to a parent pane. All the code compiles except when I get to the pane.getChildren().add(Matrix); . Im able to get the code to compile when I have all the code in main, but…
wawiiii
  • 15
  • 5
-3
votes
1 answer

How To Add Columns to Gridpane in JavaFX

I'm trying to create a Tic-Tac-Toe-like program with a board size that users can select. I can't figure out how to adjust the size of a gridpane in the code. My only lead was using ColumnConstraints and RowContraints, but I have two issues: When…
user120265
  • 13
  • 3
1 2 3
23
24