VBox is a JavaFX layout pane that lays out its children in a single vertical column.
Questions tagged [vbox]
158 questions
1
vote
0 answers
ipywidgets layouts, vertical align boxes?
I'm trying to line up a left hand label with a right hand list. It seems like under the hood the HBox and VBox are using flexbox but i can't get them to nest and align correctly. The doc examples only show simple horizontal alignment, which isn't…

Jamie Marshall
- 1,885
- 3
- 27
- 50
1
vote
0 answers
linking vbox lib with android lib
I am trying to use vbox hgcm (ring-3) from android. I have created a c file containing hgcm connect, disconnect, and call functions and compiled it (on ubuntu) for vbox.
I have to create another shared object for android which will use the vbox lib…

aajtak
- 269
- 1
- 3
- 8
1
vote
0 answers
JavaFX listener to a visible part of VBox
I have a JavaFX VBox inside a BorderPane (central). The content of the VBox is calculated using some business logic and it depends on the height of the visible part of the vbox.
So basically I need a listener watching changes of the visible height…

Prytanis
- 11
- 2
1
vote
0 answers
Layout selectors for JavaFX
I'm having difficulty understanding JavaFX CSS type selectors.
There doesn't seem to be a type-based selection like this:
VBox:first-child{
-fx-padding: 0 0 0 0;
}
I am looking for a way to remove padding for only the first child of a VBox

Benjamin Wasula
- 191
- 1
- 5
1
vote
3 answers
JavaFX: move element on window (stage) resize
I have a simple application on JavaFX, it's actually consist of several panes and buttons. I can't figure out how to make a button move when the stage resize. So, I want the left bottom button will always be visible even when resize the…

Tymur Berezhnoi
- 706
- 1
- 14
- 27
1
vote
1 answer
Adding a child to a VBox component (FLEX)
First of all I wanted to thank in advance to everyone that reads this post.
I'm having a problem when adding a child to a VBox component. Is it not the same thing?:
List Item:

atelleria
- 11
- 2
1
vote
1 answer
set VBox width to width of smaller of children in javafx
I'm trying to figure out how to get a VBox to make the preferred width be the smaller of the children's width? Actually, I want the second child to be the determining factor in setting the width and the first child will then be sized to fit the…

user3803956
- 11
- 4
1
vote
1 answer
Javafx, scrollpane with line-by-line scrolling not page-wise
I have a Scrollable-VBox with a lot of TextFields in it. I can TAB-Browse from one TextField to the next. When I reach the last currently visible and press TAB again, the scrollpane switches to the next "page" and the cursor is in the new uppermost…

JustMe
- 366
- 1
- 4
- 14
1
vote
2 answers
Why is an invisible TableView covering up a label?
I have a weird GUI problem. I'm using JavaFX to make an app. The app has different pages, each with a title, label, and tableView. Let's focus on the Welcome page. If I add just one tableView to my vbox, everything appears normal.…

Ted
- 45
- 4
1
vote
0 answers
Can I change the alignment of one element in a VBox?
If I put controls (or layouts with controls) in a VBox all elements get aligned the same way. I want to change the alignment of one of those elements like this
I tried to change the alignment of Button 2by calling setAlignment() on it, but calling…

Dean Schulze
- 9,633
- 24
- 100
- 165
1
vote
0 answers
Cannot change vbox border on #vbox:focused
When vboxs are focased can we use css to change them?
#vbox{
-fx-border-radius:8;
-fx-border-width:2;
-fx-border-color: #333333;
}
//this works
#myvbox:hover {
-fx-border-color: #455A64;
}
//this does not
#myvbox:focused{
…
user1781523
1
vote
1 answer
JavaFx Resize VBox as contents are added with ScrollPane
I am relatively new to JavaFx and I need help in getting a Vbox to grow as nodes are added to it.
I've place a VBox in a ScrollPane. The VBox gets filled with TitledPanes as they come in. But once the TitledPanes fill the space allotted the Vbox,…

bleik urrego
- 90
- 10
1
vote
1 answer
How equitably distribute node in VBox in JavaFX FXML
How can I distribute equitably several section in a VBox?
In other words, I have this FXML code:
…

Jeankowkow
- 814
- 13
- 33
1
vote
1 answer
Is there a way to insert children at specific position?
thats a part of my fxml:
I want to add a new child to vBox. But i want to add it at a specific position, for example between the two buttons "at position 2".

Siro Duschletta
- 283
- 1
- 4
- 15
1
vote
1 answer
Adding an ObservableList to HBox?
I have an array of JavaFX Labels to add to a HBox .However I understand that HBox.add method does not accept Collection types. Therefore , I add it through a loop instead. Unfortunately , Only one label is executed at a time and not all gets…

Syed Ariff
- 722
- 2
- 8
- 26