|
An Introduction to Graphical User Interface (GUI) Technology
With Examples in Java |
|
Prof. David Bernstein
|
| Computer Science Department |
| bernstdh@jmu.edu |
JButton Objects
ActionEvent
ActionListener
void actionPerformed(ActionEvent event)
JMenuBar:
JMenuBar object and then
call its void add(JMenuItem item) methodJFrame has a
void setJMenuBar(JMenuBar bar) method