Where is filechooser in javafx scene builder 2.0? I can not find him

I have java jdk 7.65, sdk 7.65. Where is filechooser in javafx scene builder 2.0? I can not find him.

+8
java javafx scenebuilder
source share
2 answers

SceneBuilder is intended for plotting a scene, i.e. to create nodes and add them to the root container, which is intended to be added to Scene .

FileChooser not a Node ; it cannot be placed on the scene chart; so it really doesn't make sense to include it in a SceneBuilder. A typical use of FileChooser is that it is displayed in response to a user action, such as a button click. This will be done in the handler method, and not in building the user interface.

In other words, it’s not entirely clear what you would do with FileChooser if it were available in SceneBuilder.

+9
source share

Where is filechooser in javafx?

The FileChooser class is in the javafx.stage package.


File selection

This chapter explains how to use the FileChooser class so that users can navigate the file system. The samples presented in this chapter explain how to open one or more files, configure the file selection dialog box, and save the contents of the application.

Unlike other classes of user interface components, the FileChooser class does not apply to the javafx.scene.controls package. However, this class is worth mentioning in the JavaFX UI Controls Tutorial because it supports one of the typical GUI application functions: file system navigation.

The FileChooser class is located in the javafx.stage package along with other basic root graphic elements such as Stage, Window, and Popup.

Source Using JavaFX UI Controls

+3
source share

All Articles