Review:
CSE148 Object Oriented Programming Homework Set 11
1. JavaFX framework:
2. JavaFX basics: Application; Stage; Scene and Scene graph.
3. JavaFX Layout: FlowPane, Hbox/VBox, BorderPane, GridPane
4. Event-driving programming, event, event handler
5. Inner classes
Write a Java program to:
1. Revise HW10 Ex1: Register top/bottom/left/right buttons with event handler: when the one of the buttons is pressed, display message in central text field: ¡°Left/Right /Top/Bottom Button Is Pressed¡±
PS: Use methods defined with TextField to get/set text: getText(), setText()
2. Design a dial pad with layout as show below. Register event handler with buttons on the pad surface, so when a key is pressed, (1) the number will be displayed on the top text field. If exactly 10 numbers are dialed, enable ¡°Dial¡± button, otherwise disable it.
SCCC CSE148, Spring 2021
SCCC CSE148, Spring 2021