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
1
vote
1 answer

JavaFX - Odd behavior from GridPane with DatePicker

GridPane does not seem to size properly when containing DatePickers. Anyone have an idea what's going on or a potential work around? I have tried a number of other nodes (CheckBox, ChoiceBox, etc.) and DatePicker seems to be the only one that…
Tommo
  • 977
  • 14
  • 35
1
vote
1 answer

Why can't I use the same Image twice?

I have been trying to learn more on using JavaFX and in this program I am trying to display a 3 by 3 game of tic tac toe that has already been played. I have created my ImageViews and set the images I want to use but once I started plugging them…
user3543798
  • 35
  • 1
  • 6
1
vote
1 answer

Wrapping a GridPane in a ScrollPane or programatically modifying it. Most efficient approach?

In a game I have a GridPane displaying the Tiles of the world in square cells. The player can, using the keyboard, move what is displayed by a column\row. The approaches I've thought of are: Having the GridPane change programmatically the displayed…
Angelo Alvisi
  • 480
  • 1
  • 4
  • 15
1
vote
2 answers

JavaFX put RadioButtons into GridPane

I have the following piece of code: GridPane gp = new GridPane(); // filling GridPane with other nodes... RadioButton maschio = new RadioButton("M"); RadioButton femmina = new RadioButton("F"); final ToggleGroup tg = new…
bog
  • 1,323
  • 5
  • 22
  • 34
1
vote
1 answer

GridPane in ScrollBar, stretch empty space

I'am using javafx for building a GUI, including a GridPane with a MenuBar and another GridPane. I want that second GridPane to be scrollable, so I put it into a ScrollPane "new ScrollPane(grid2)", and added it to the first GridPane. Unfortunally,…
user51705
  • 15
  • 1
  • 1
  • 4
1
vote
0 answers

JavaFX Gridpane border shades and thickness appear to vary

After creating a GridPane and calling Snapshot() on it, the image that I get has gridlines that appear to vary in color and width. The thinner ones are lighter, the thicker are darker. Any thoughts? //Create the gridpane GridPane gPane =…
Risky_91
  • 81
  • 3
  • 9
1
vote
1 answer

JavaFX - Using for loops in GridPane?

I am trying to use two for loops to automatically add ImageView nodes to each location. When using the for loops I receive an error. When I comment the for loop code out with only one statement to add an ImageView node the code seems to work can you…
leftlopez
  • 63
  • 1
  • 3
  • 7
1
vote
1 answer

removing Action column selection from column selection Extjs

how to hide or remove action column from column selection : please check image for more idea.
AtmiyaDas2014
  • 300
  • 1
  • 3
  • 25
1
vote
1 answer

Javafx gridpane width setting

I need to make some kind of table in which I store simple Region nodes (I will do other stuff on them afterwards - such as megring cells horizontally and giving them other properties, Labels for example) Table will have lots of columns, >200. My…
Ooxyo
  • 13
  • 1
  • 3
1
vote
0 answers

JavaFX adding rows/columns to a GridPane from any position

I am working with a GridPane layout and I require it to (by default) have a fixed number of rows and columns. In certain situations, I would like the GridPane to expand in the number of rows and columns. I would like the GridPane to have an extra…
Matt
  • 41
  • 1
  • 4
1
vote
1 answer

JavaFX GridPane inside ScrollPane inside GridPane can't set ScrollPane Growing

Hi all ! I've got a simple question: I'm using FXML files and I've done this layout: I am trying to expand the height of the Scrollpane inside the column 1 (row span 3) With this hierarchy: (top GridPane controller is hightlighted - it is inside a…
neuronsoverflow
  • 133
  • 4
  • 14
1
vote
1 answer

JavaFX Text Stretches Stage Width

I have the following example code: import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.TextField; import javafx.scene.layout.GridPane; import javafx.scene.text.Text; import javafx.stage.Stage; public class…
Kevin Workman
  • 41,537
  • 9
  • 68
  • 107
1
vote
1 answer

JavaFX: Making BorderPane's Center's contents not strech

just a quick one for you since I'm generally inexperienced in designing apps. Any help would be greatly appreciated. I've got the following application, and it's obvious that it uses a BorderPane for its layout. I've got a GridPane of 5 labels and 5…
Dimitris Sfounis
  • 2,400
  • 4
  • 31
  • 46
0
votes
0 answers

JavaFX drag-and-drop tiles between two GridPane's

I am working on a game as a personal project. It involves tiles that appear both in a rack and on a game board. The rack is a GridPane and the board is a GridPane. I need to be able to drag and drop tiles both within the rack and board, as well as…
chasse
  • 225
  • 2
  • 9
0
votes
1 answer

JavaFX - Display Nodes at specific row and column in gridpane

I created an UI with JavaFX but have some problems with the layout. Basically I created a gridpane with a bunch of nodes. Here's the basic grid with the lines visible: This is how I add all the nodes: lEncoderName.setMinHeight(0); …
codeNoob
  • 21
  • 2