Font size
WorksheetsJavaFX
Total questions: 12
Worksheet time: 8mins
What is the entry point for all JavaFX applications ?
main()
start()
package()
class()
Which class represents a window in Java FX ?
scene
stage
application
pane
Create btn object of class Button (put space between words)?
(a)
Set text "Solutions" on the object btn !
(a)
Which method will we use if we want to set the width of the object btn ?
setWidth()
setMinWidth()
setW()
setWth()
What is not JavaFX node ?
Button
ImageView
Picture
Text
Fill in the blank !!!
btn.setOnAction(new EventHandler< (a) >() {
@Override
public void handle(ActionEvent event) {
System.out.println("Hello World!");
}//end method handle
});//end setOnAction
Which pane we will use if we want to put buttons in the horizontal line ?
(a)
How to add object btn to the Root Node
(a)
Which panel does not exist in JavaFX ?
GridPane
TilePane
FlowPane
LinePane
Which root node allows you to place Nodes anywhere
Group
AnchorPane
Border Pane
Grid Pane
What are the properties of Stage ?
title
node
shape
scene
