Questions tagged [scenebuilder]

SceneBuilder is a UI design tool for JavaFX. It supports WYSIWYG drag-and-drop editing and produces FXML which can be used in JavaFX applications.

JavaFX Scene Builder is a visual layout tool that lets users quickly design JavaFX application user interfaces, without coding. Users can drag and drop UI components to a work area, modify their properties, apply style sheets, and the FXML code for the layout that they are creating is automatically generated in the background. The result is an FXML file that can then be combined with a Java project by binding the UI to the application’s logic.

The Scene Builder project was created using JavaFX by Oracle and it is open source within the OpenJFX project.

Oracle provided binaries, up until Scene Builder v 2.0, including only JavaFX features before the release of Java SE 8u40.

Gluon took over the binary releases distribution, and an up-to-date Scene Builder 8+ can be downloaded for every platform from here: https://gluonhq.com/products/scene-builder/

It includes the latest changes in JavaFX, and also recent improvements and bug fixes.

The open source project can be found here. Issues and feature requests can be filed here and pull requests here.

The Oracle legacy binaries still can be downloaded from here.

1992 questions
20
votes
3 answers

JavaFX Scene Builder: pointer cursor onMouseOver

Is it possible to set the mouse cursor to become a pointer (hand) when hovering a Node width JavaFX Scene Builder? How?
Morrandir
  • 595
  • 1
  • 4
  • 19
17
votes
1 answer

how can I set the controller in the scene builder?

I want to use sceneBuilder for a javaFx application. I have a Package that is called testPac and inside that I have the folders as has been presented in figure 1; I have one fxml file and its controller inside the view folder. now, I don't know…
Delsa
  • 303
  • 1
  • 2
  • 10
17
votes
3 answers

JavaFX Table Cell Editing

I am trying to make a program in Java to manage my bookie accounts. I'm new to java, so I thought I would chose something simple to see how things work. I decided to use a tableview and make the individual cells editable. I've been following this…
Adam.J
  • 2,519
  • 3
  • 14
  • 12
17
votes
1 answer

How to change the color of pane in javafx?

I want to change the color of a Pane which I get as a String from user. How can I set this String as a background color in my pane? Code: colorField.setOnKeyTyped(new EventHandler() { @Override public void handle(KeyEvent t) { …
maryam
  • 387
  • 2
  • 3
  • 10
16
votes
5 answers

Cannot access class com.sun.javafx.util.Utils (in module javafx.graphics) - JavaFX & Eclipse

I have follow this guide to setup JavaFX onto a Linux machine. First I have installed Java 11 asus@asus-pc:/usr/share/openjfx/lib$ java -version openjdk version "11.0.3" 2019-04-16 OpenJDK Runtime Environment (build…
euraad
  • 2,467
  • 5
  • 30
  • 51
16
votes
1 answer

Using command line arguments in Java with JavaFX

I have the following code: public class Main extends Application { @Override public void start(Stage primaryStage) throws Exception{ Parent root = FXMLLoader.load(getClass().getResource("hive.fxml")); …
Karatawi
  • 378
  • 2
  • 6
  • 16
16
votes
2 answers

Why won't the children in my JavaFX HBox grow (SceneBuilder)?

The JavaFX docs for HBox say: If an hbox is resized larger than its preferred width, by default it will keep children to their preferred widths, leaving the extra space unused. If an application wishes to have one or more children be allocated that…
Ryan J
  • 2,502
  • 5
  • 31
  • 41
15
votes
2 answers

Importing JFoenix library to SceneBuilder - javaFX

I downloaded library JFoenix.jar from official site for Java 8. I want to import that library to Scene Builder (Gluon). But everytime I try to import it, I dont have all elements from that library (it misses for example JFXButton, JFXTextarea…
Rocky3582
  • 573
  • 4
  • 7
  • 17
15
votes
5 answers

setting up Scene Builder with NetBeans 8.0.2

I am using: Mac OS X 10.10.1 NetBeans 8.0.2 SceneBuilder 8.0.0 downloaded from gluonhq.com I dragged SceneBuilder to Applications folder. When I go to Options>Java>JavaFX and set Scene Builder path to the Applications folder, I get the…
Rounak
  • 613
  • 3
  • 8
  • 22
14
votes
2 answers

FXMLLoader how to access the components by FXID?

I'm trying to figure out how to work with JavaFx. I built the application interface in Scene Builder. But I can not get access to the component, since all loaded into the Parent. Parent root =…
JavaPanic
  • 143
  • 1
  • 1
  • 4
14
votes
3 answers

How to add a CSS stylesheet in FXML

I'd like to link a css file to my application. In my fxml file I use this: ...and I can see a styled preview when I open the fxml file in scenebuilder. But when I try to run…
cody
  • 6,389
  • 15
  • 52
  • 77
14
votes
1 answer

How to merge cells in JavaFX Scene builder?

I have a gridpane looks like a KeyBoard, and I need to merge some cells to put a "Space" button.. But I cant find any option in the settings of the gridpane which would solve my problem.. Does anyone have an idea how I could achieve it?
Artem Ruchkov
  • 581
  • 2
  • 7
  • 21
14
votes
4 answers

JavaFX how to change stage

I'm using Netbeans 7.2 with Scene Builder 1.0 to develop a JavaFX application. I have my main screen set up, and I want to have it so I click a button and it'll close the main window and open another. The main Stage object is located in the main…
Tyler Petrochko
  • 2,611
  • 4
  • 24
  • 30
13
votes
3 answers

JavaFX: Align Buttons inside ButtonBar (using SceneBuilder or fxml)

I have a JavaFX ButtonBar with two Buttons (created via SceneBuilder). I want one of the buttons to be left-aligned and the other right-aligned. (see screenshot) From the docs I already know how I could achieve this inside the…
drkthng
  • 6,651
  • 7
  • 33
  • 53
13
votes
2 answers

What are JavaFX, FXML and Scene Builder?

I am new to JavaFX, and am trying to do a project in it. In some tutorials they mention FXML. What is the difference between the two? I am using NetBeans IDE to develop my project, and heard about using Scene Builder when working with FXML. What…
TomJ
  • 1,803
  • 14
  • 37
  • 57