You are on page 1of 1

Components Sub Comp Sub--sub Comp Listener Descriptions

JFrame frame JFrame frame


BorderLayout
JFrame
frame_setLayout
JFrame frame_setSize
ActionListener Layout
BorderLayout() Size
(500,400)
Location: center of windows
NORTH
JPanel panel_north
JLabel label_title ActionListener
KeyListener

The constructor used is JLabel(Icon image
) Image name is kpt.png
CENTER
JPanel panel_center
JTextArea ta_data KeyListener
KeyAdapter
Size of text area (15,35)
JscrollPane panel ActionListener The panel to insert text and data
EAST



JPanel panel_east JPanel grid ActionListener Layout GridLayout(8,1)
JButton [] btn ActionListener The button texts are Save, Reset and Close
SOUTH



JPanel panel_south
JLabel lbl_input KeyListener
KeyAdapter

The text is Message:
JTextField txt_input KeyListener-
KeyAdapter
The column size is 30
JButton btn_send ActionListener The button text are Send