Skip to content
Advertisement

Tag: scenebuilder

How to enable drag for transparent AnchorPane?

I need to make my bottom AnchorPane transparent, and I used below code to do that. It works, but after that I cannot move my application by drag? I cannot move application around the workspace; how can I fix it ? Answer You can see this example But I think there will be a better way

Which version of OpenJFX (JavaFX) and Scene Builder should I use with Amazon Corretto 11 (OpenJDK)?

In your opinion, what is the best version of OpenJFX (JavaFX) and Scene Builder should I use with Amazon Corretto 11 (OpenJDK)? Currently, until the date of this post, there are 2 versions of OpenJFX (JavaFX) and 2 versions of Scene Builder: Gluon’s JavaFX versions: JavaFX 11 LTS JavaFX 16 Latest Release Gluon’s Scene Builder versions: Scene Builder 16 Scene

NullPointerException, even though object is pointing to the FXML instance

(I am using Scene Builder…) Here is the MusicGeneratorGUI class… Here I have instantiated the object from the FXML file with the same ID… However, System.out.println(icon); in the main method of the controller class produces null. The ‘icon’ Sphere object is null. Here is the main class… (‘controller class’) Answer You need to create an instance of your loader. Then

JavaFX menu item show shortcuts on right hand side

Take for example the menu items from the edit menu in JavaFX Scene Builder See how they display the shortcuts on the right? Is there any easy way to achieve the same effect using JavaFX? Thanks. Answer You can add an accelerator key in scene builder or add it directly in the fxml file like so KeyCodeCombination has two constructors,

Advertisement