What events do the following components generate JButton JTe
What events do the following components generate: JButton JTextField JComboBox
Solution
JButton allows a button to be created using a string or an icon or both.
ActionEvent, TextEvent, FocusEvent, and ComponentEvent are generated when JButton is pressed.
JTextField is used to take input text from user.
JTextField generates event objects from the ActionEvent textEvents, keyReleasedEvent
JComboBox is a combination of drop-down list and test field, used to create combo box in swing
ActionEvents and ItemEvents are generated by JComboBox
