Unit-5 Questions
Event Handling
Two Event Handling Mechanisms, The Delegation Event Model, Event Classes, The Event Class, The KeyEvent Class, Sources of Events, Event Listener Interfaces, Using the Delegation Event Model, Adapter Classes, Inner Classes
What do you mean by an Event, Event Source, and Event Listener?
Explain the delegation event model and the role of the source and listeners with examples.
What are Adapter Classes? How can they simplify the creation of event handlers?
Show how keyboard events are handled with an example.
Show how mouse events are handled with an example.
JavaFX
Introducing JavaFX GUI Programming, Exploring JavaFX Controls
Part A: Foundational Concepts
Discuss the
Application
class and the life cycle methods (init()
,start()
,stop()
) of a JavaFX application.Explain the following core structural components of JavaFX:
The
Stage
andScene
classesNodes and the Scene Graph
Layouts (e.g.,
VBox
,HBox
,BorderPane
)
Part B: JavaFX Controls with Examples
Illustrate with simple examples the use of basic JavaFX controls such as
Label
,Button
,RadioButton
, andTextField
.Explain and provide an example for more advanced JavaFX controls like
ListView
,TreeView
, andScrollPane
.
Part C: Complete Application
- Write a complete temperature conversion program that converts a temperature from Fahrenheit to Celsius. The Fahrenheit temperature should be entered from a
TextField
, and aLabel
should be used to display the converted temperature.
Web Development
Introduction to Servlets and JSP
Database Programming
JDBC and Database Connectivity