Lecture 8
Lecture 8
java.lang.Object
java.awt.Component
java.awt.Container
Javax.swing,JComponent
Component class
Operations common to most GUI components are found in Component
class.
Container class
Two important methods originates in this class
add — adds components to a container.
setLayout — enables a program to specify the layout manager that helps
a Container position and size its components.
JLabel
ActionEvent ContainerEvent
ComponentEvent InputEvent
MouseEvent
ItemEvent PaintEvent
TextEvent WindowEvent
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JButton javax.swing.ToggleButton
javax.swing.JCheckBox javax.swing.JRadioButton