Windowing
An Introduction with Examples in Java |
Prof. David Bernstein
|
Computer Science Department |
bernstdh@jmu.edu |
Using Something Like the Composite Pattern
It would be better if there were a JMenuComponent
interface
that both the JMenuItem
and the JMenu
implemented
(realizations of which could be added to a JMenu
).