Title: GUI Component Basics
Course: CPS 261: Advanced Java Concepts ~ DL & MM MASTER > Section: Learning Units - Bb

Presentations and Videos

- GUI Component Basics lecture video (Time: 44:00)
- GUI Component Basics document

- JTextArea, JTextField and the useful associated methods: setText, append, getText, getSelectedText, ...
- Other components: JLabel and JButton
- How to connect up an ActionListener interface to find out when a JButton is clicked or when someone hits the Enter key in JTextField
- Using the methods getSource() and getActionCommand() to determine which Button was clicked
- Using inner classes and anonymous classes