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
0
votes
1 answer

JavaFX automated Scroll

I have a gridpane in a scrollpane. One gridcell has the size of the scrollpane so you have to scroll to see the other gridcells. Now I want to scroll automatically to a explicit grid cell. Does anyone have an idea how I can do that?
Studiosus
  • 143
  • 1
  • 11
0
votes
1 answer

How to display elements of a 2-d array in a JavaFX GUI

I'm extremely new JavaFX (and any GUI for that matter), and I'm having troubles with understanding some concepts. That said, I have 10x10 multi-dimensional array that stores random int's within a class that extends GridPane, and I'm having troubles…
LumberSzquatch
  • 1,054
  • 3
  • 23
  • 46
0
votes
1 answer

JavaFX: Cannot dunamically update GridPane

OK here is a tough one that has been driving me nuts for a couple of days now... I have two stages: A users administration stage (Controller: UsersAdminController.java) with the following element hierarchy: and a User addition stage: (Controller:…
pkaramol
  • 16,451
  • 43
  • 149
  • 324
0
votes
1 answer

how to keep space between images in scrollpane

I need to space up between images in a scrollpane.I'm adding an imageview and a button to a Vbox.Then that vbox to a gridpane.gridpane is added to scrollpane.However,scrollpane gets overcrowded.I've used gridpane.setPadding(), but no effect. here's…
0
votes
1 answer

JavaFX on Android - GridPane pan/scroll standard way not working

I use JavaFX on Android (latest version for JDK7). Does anyone here has experience with scrolling GridPane on touchscreen? I can zoom fully functional with code following: gridPane.setOnZoom(new EventHandler() { @Override …
blizzard
  • 99
  • 8
0
votes
1 answer

JavaFX: How to shift elements in a GridPane?

Let me explain: lets say i have a GridPane 10x10 and in position row = 2 and col = 3 there is a Circle. I have a Button and I want that when the button is pressed, the circle shift to the right 1 step (1 coloumn) so its new position will be row = 2,…
bog
  • 1,323
  • 5
  • 22
  • 34
0
votes
0 answers

JavaFX GridPane - Rearranging or moving nodes in cells

I have a 3X3 grid pane. I need to move nodes between cells or remove some nodes at, say, x,y position. In doing so I want the remaining nodes to get rearranged accordingly. Like if I remove the first node, the node at cell 0,1 should occupy 0,0 and…
Saju
  • 402
  • 3
  • 11
  • 30
0
votes
1 answer

adding images to a gridpane javafx

I'm adding a list of images from a directory using an arraylist.When images are added,my ScrollPane gets crowded.How can I keep spacings between images ? here's my code File file = new File("D:\\SERVER\\Server Content\\Apps\\icons"); File[]…
0
votes
1 answer

Javafx gridpane layout allignment

I have a small question. I am trying to create a good GUI (which you can resize) with JavaFX 2.0 but I have a small problem. I am using a gridpane but when i put multiple buttons in it and when I resize the screen to a smaller size the buttons will…
Gilian Joosen
  • 486
  • 3
  • 21
0
votes
1 answer

JavaFX Gridpane out of shape

I have a problem adding a gridpane to an AnchorPane in Scene Builder! The GridPane is completely out of shape as soon as I put it into the window. The actual window is at the position where it is supposed to be but the grid with the rows and columns…
Alex
  • 1
  • 3
0
votes
1 answer

JavaFX How to add Wrapped Text to GridPane

When I was append some text dynamically to the TextArea it was wrapped correctly as follow: But due to requirement changed I have to add some image as bullet for (in front of the) each text. Then I used GridPane to add those text with images as…
Channa
  • 4,963
  • 14
  • 65
  • 97
-1
votes
1 answer

JavaFX GridPane fixed row size

I am working on a grammar analysis program. I am using a GridPane and have three TextAreas so far. The TextArea paliVerse should span over two rows; the TextArea analysis over four. However, when I change the TextArea analysis…
Jacob J.
  • 3
  • 6
-1
votes
1 answer

Resizable Buttons in 4*6 GridPane

My target is to build a Window in JavaFX where there will be 24 buttons, such way that: The buttons should be placed in 4x6 grid (meaning 4 columns, 6 rows) Edit the grid and buttons in a way that allows the grid to fill the whole window (even when…
Himu21
  • 88
  • 1
  • 8
-1
votes
1 answer

Group nodes in gridpane in JavaFx

is it possible to cluster cells of a gridpane in group nodes in javafx? The reason why I want to do this, is to apply different css selectors on subsets in the gridpane. I have these cells in a gridpane (2 rows, 4 columns): a1 | a2 | b1| b2 c1 | c2…
Hatatister
  • 962
  • 6
  • 11
-1
votes
1 answer

Getting X and Y values of a gridpane with HBoxes in every row

I have a script in JavaFX where I need to get the X and Y or the Row and Col values of a GridPane. Each grid has a HBox and the size of the HBox always varies as there are a random number of shapes in each HBox. I need to be able to get the value of…
apex
  • 37
  • 7