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