Top "Javafx-2" questions

OUTDATED - DO NOT USE FOR GENERAL JAVAFX QUESTIONS!

How to call functions on the stage in JavaFX's controller file

I am using javafx along with fxml, so I use the controller for the real coding. I need to do …

location javafx-2 javafx fxml
JavaFX ScrollPane border and background

I'm having some problem regarding the default background and border of the ScrollPane. Using this style made the problem clearer …

javafx-2 scrollpane
Prevent/Cancel closing of primary stage in JavaFX 2.2

As the title says, my question is, how can I prevent/cancel closing of primary stage in JavaFX 2.2? I have …

java javafx-2
How to get parent Window in FXML Controller?

For example, I want open a DirectoryChooser when clicking on the button: <VBox fx:controller="com.foo.MyController" xmlns:…

javafx-2 fxml
How do you set the style for a JavaFX ContextMenu using css?

I am trying to change the style of a ContextMenu item using a seperate CSS file. I looked at the …

styling javafx-2
JavaFX 2.0 Activating a Menu like a MenuItem

I'm making a MenuBar, and I wan't the functionality to press a Menu like: "File" and then execute a action. …

menu javafx menuitem javafx-2 menubar
Moving an undecorated stage in javafx 2

I've been trying to move an undecorated stage around the screen, by using the following mouse listeners: onPressed onReleased onDragged …

javafx-2 stage
Is there a way to take away focus in javafx?

I know that your can give focus to a node in javafx by doing node.requestFocus(); but is there a …

java javafx focus javafx-2 nodes
Set Font globally in JavaFX

How can I set the Font type globally in a JavaFX application? Is there any solution that I can use? …

javafx-2 javafx javafx-8
JavaFX & FXML: how do I set the default selected item in a ChoiceBox in FXML?

I have the following FXML: <ChoiceBox> <items> <FXCollections fx:factory="observableArrayList"> <String fx:…

javafx-2 javafx fxml