Deck 14: Creating GUI Applications with JavaFX
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/40
العب
ملء الشاشة (f)
Deck 14: Creating GUI Applications with JavaFX
1
This is a component that can hold other components inside of it.
A) Container
B) Module
C) Node
D) Element
A) Container
B) Module
C) Node
D) Element
A
2
A(n) ________ is a method that automatically executes when a specific event occurs.
A) flag register
B) action scheduler
C) callback routine
D) event listener
A) flag register
B) action scheduler
C) callback routine
D) event listener
D
3
The ________ is responsible for handling events that occur while the JavaFX application is running.
A) abstract class
B) main application class
C) controller class
D) super class
A) abstract class
B) main application class
C) controller class
D) super class
C
4
This is an action that takes place within a program, such as the clicking of a button.
A) response
B) input
C) event
D) incident
A) response
B) input
C) event
D) incident
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
5
This is a markup language that describes the components in a JavaFX scene graph.
A) SGML
B) HTML
C) XML
D) FXML
A) SGML
B) HTML
C) XML
D) FXML
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
6
A window in a GUI commonly consists of several ________ that present data to the user and/or allow interaction with the application.
A) modules
B) components
C) elements
D) buttons
A) modules
B) components
C) elements
D) buttons
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
7
In JavaFX, this component is commonly used as a GUI's root node.
A) List
B) AnchorPane
C) Button
D) ComboBox
A) List
B) AnchorPane
C) Button
D) ComboBox
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
8
This is a special annotation that must precede any nonpublic field declaration or nonpublic method definition that is used by the FXML file.
A) @FXML
B) finalFX
C) fx:id
D) #FXML
A) @FXML
B) finalFX
C) fx:id
D) #FXML
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
9
The Scene Builder ________ provides a list of JavaFX components that you can use in an application.
A) Inspector Panel
B) Menu Bar
C) Content Panel
D) Library Panel
A) Inspector Panel
B) Menu Bar
C) Content Panel
D) Library Panel
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
10
Which of the following does not belong in a JavaFX scene graph?
A) trunk node
B) branch node
C) leaf node
D) root node
A) trunk node
B) branch node
C) leaf node
D) root node
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
11
Once you have created a GUI with Scene Builder, and saved it to an FXML file, you need to write a Java class that performs which of the following?
A) loads the FXML file
B) builds the scene graph in memory
C) displays the GUI
D) All of the above
A) loads the FXML file
B) builds the scene graph in memory
C) displays the GUI
D) All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
12
To place a component in a GUI, you simply drag it from the Library Panel, and drop it into the
A) Content Panel.
B) Hierarchy Panel.
C) Selection Bar.
D) Inspector Panel.
A) Content Panel.
B) Hierarchy Panel.
C) Selection Bar.
D) Inspector Panel.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
13
This is a name that identifies a component in the FXML file and will also become a variable name that you can use later in the Java code that you will write to run the application.
A) fx:id
B) fx_id
C) FXID
D) fx.URL
A) fx:id
B) fx_id
C) FXID
D) fx.URL
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
14
Which of the following import statements is necessary to make the connection between the controller class and the application's FXML file?
A) import javafx.lang;
B) import javafx.scene.control;
C) import javafx.fxml;
D) import javafx.fxml.FXML;
A) import javafx.lang;
B) import javafx.scene.control;
C) import javafx.fxml;
D) import javafx.fxml.FXML;
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
15
A ________ is a tree-like, hierarchical data structure that contains nodes.
A) scene graph
B) class hierarchy
C) UML diagram
D) tree graph
A) scene graph
B) class hierarchy
C) UML diagram
D) tree graph
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
16
Oracle provides a free design tool named ________ that you can use to visually create a GUI.
A) EclipseLink
B) JavaFX
C) Scene Builder
D) Oracle ADF Essentials
A) EclipseLink
B) JavaFX
C) Scene Builder
D) Oracle ADF Essentials
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
17
The Application class's ________ method is the main entry point for a JavaFx application.
A) start
B) init
C) addWindow
D) mainFX
A) start
B) init
C) addWindow
D) mainFX
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
18
This variable references the window that the GUI will be displayed in.
A) window
B) stage
C) component
D) frame
A) window
B) stage
C) component
D) frame
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
19
This is a graphical window or a system of graphical windows presented by an application for interaction with the user.
A) graphical user interface (GUI)
B) human-computer interface (HCI)
C) man-machine interface (MMI)
D) object-oriented user interface (OOUI)
A) graphical user interface (GUI)
B) human-computer interface (HCI)
C) man-machine interface (MMI)
D) object-oriented user interface (OOUI)
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
20
This Scene Builder panel allows you to work with a component's properties, layout, and code.
A) Library Panel
B) Hierarchy Panel
C) Inspector Panel
D) Content Panel
A) Library Panel
B) Hierarchy Panel
C) Inspector Panel
D) Content Panel
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
21
In the controller class, you can use the CheckBox's ________ method to determine whether the CheckBox is selected or not.
A) getIndex
B) isActive
C) isChecked
D) isSelected
A) getIndex
B) isActive
C) isChecked
D) isSelected
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
22
A simple ________ application uses a main application class, and a controller class.
A) Java
B) JavaFX
C) AWT
D) Swing
A) Java
B) JavaFX
C) AWT
D) Swing
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
23
Even if a variable will not reference a component in the GUI, it is necessary to precede the declaration by the @FMXL annotation.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
24
Although these are often displayed in groups, they are not usually grouped in a toggle group like RadioButtons are.
A) Labels
B) CheckBoxes
C) Buttons
D) TextFields
A) Labels
B) CheckBoxes
C) Buttons
D) TextFields
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
25
To change the image being displayed in an ImageView component as the application is running, you pass a reference to an Image object as an argument to this method.
A) setImage
B) replaceImage
C) showImage
D) addImage
A) setImage
B) replaceImage
C) showImage
D) addImage
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
26
Which of the following is true concerning the sample controller skeleton provided by Scene Builder?
A) It has all of the necessary import statements.
B) It has private field declarations for all of the components that have an fx:id.
C) You just need to change the name of the class, and write the code for the event listener methods.
D) All of the above
A) It has all of the necessary import statements.
B) It has private field declarations for all of the components that have an fx:id.
C) You just need to change the name of the class, and write the code for the event listener methods.
D) All of the above
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
27
In the controller class, you can use the RadioButton's ________ method to determine whether the RadioButton is selected or not.
A) isChecked
B) isPushed
C) isSelected
D) getIndex
A) isChecked
B) isPushed
C) isSelected
D) getIndex
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
28
In a scene graph, the root node and branch nodes can have children, but leaf nodes cannot.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
29
Like RadioButtons, CheckBoxes may be selected or deselected at run time.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
30
________ are useful when you want the user to select one choice from several possible options.
A) RadioButtons
B) CheckBoxes
C) Buttons
D) Labels
A) RadioButtons
B) CheckBoxes
C) Buttons
D) Labels
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
31
As an alternative for manually typing the code for the controller class, Scene Builder can provide a sample "skeleton" for the controller class.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
32
You can use this component to display images in an application's GUI.
A) Label
B) ImageView
C) AnchorPane
D) ComboBox
A) Label
B) ImageView
C) AnchorPane
D) ComboBox
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
33
Because only one RadioButton in a toggle group can be selected at any given time, the buttons are said to be this.
A) static components
B) singularly bound
C) all inclusive
D) mutually exclusive
A) static components
B) singularly bound
C) all inclusive
D) mutually exclusive
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
34
In JavaFX, the components that are in a GUI are organized as a UML diagram.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
35
FXML uses tags to organize data, in a manner similar to the way that HTML uses tags to format text in a Web browser.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
36
Once you have written and compiled the controller class, you must go back into Scene Builder and register the controller class to the application's GUI.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
37
You can use JavaFX to create standalone graphics applications that run on your local computer, applications that run from a remote server, or applications that are embedded in a Web page.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
38
This section of the Inspector Panel allows you to register the controller class and event listeners with the GUI.
A) Code
B) Properties
C) Layout
D) Content
A) Code
B) Properties
C) Layout
D) Content
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
39
In addition to accepting input from the keyboard, GUIs typically accept input from a mouse, or a touch screen.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck
40
You can write a JavaFX GUI application using nothing but Java code.
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 40 في هذه المجموعة.
فتح الحزمة
k this deck