JavaFX Java GUI Tutorial - 35 - Working with Scene Builder

thenewboston · 359K views · 2015 · 15:27

Open on YouTube

Software (other)Programming language designtutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering beginner questions about building JavaFX GUIs with Scene Builder and wiring up controllers.

Recommended by 3 people across 3 different months, 2016 to 2019.

What it is

Part 35 of thenewboston's JavaFX Java GUI tutorial series, a screencast showing how to use Scene Builder to design JavaFX interfaces visually. It walks through working with the drag-and-drop layout tool and the FXML it produces.

What people said

Recommends Brian Stallter · 2016-01 · Stack Overflow · on “How to position controls binding there position into the stage's size using the controller class in JavaFx?”

by using the layoutXProperty and layoutYProperty and binding them to the Stage's width and height you must be trying to put it in the lower right hand corner of the stage. You can achieve this much easier, and JavaFX insists you do so, by using layouts in your scene and making the scene fill the entire area in question. "From the Javadocs for the layoutX property: If the node is managed and has a Region as its parent, then the layout region will set layoutX according to its own layout policy. If the node is unmanaged or parented by a Group, then the application may set layoutX directly to position it. What this means is that the LayoutX/Y properties are controlled by the parent (and so it sh

Recommends Trunk · 2019-01 · Stack Overflow · on “How to get the user input in Java?”

Keyboard entry using Scanner is possible, as others have posted. But in these highly graphic times it is pointless making a calculator without a graphical user interface (GUI). In modern Java this means using a JavaFX drag-and-drop tool like Scene Builder [LINK] to lay out a GUI that resembles a calculator's console. Note that using Scene Builder is intuitively easy and demands no additional Java skill for its event handlers that what you already may have. For user input, you should have a wide TextField at the top of the GUI console. This is where the user enters the numbers that they want to perform functions on. Below the TextField, you would have an array of function buttons doing basic

Recommends user11068159 · 2019-02 · Stack Overflow · on “java scenebuilder bmi calculator”

You probably aren't referencing the instance of your variables...where is your Main method where the program starts? You have to load your FXMLController and it's resources in a Java file. Try looking at a YouTube video on how to use a simple JavaFX program with SceneBuilder. One of the one's I like is: How to use SceneBuilder [this video]