You learned how to create graphical user interfaces using Swing GUI components JButton , JCheckBox , JRadioButton , JLabel , JTextField , JTextArea , JComboBox , JList , JScrollBar , and JSlider . You also learned how to handle events on these components.
You can display a text and icon on buttons ( JButton , JCheckBox , JRadioButton ) and labels.