C
conrad
1) I want to have a menu bar and options selected from
the menu bar will change the content pane. Would the
ideal way of doing this be as follows: for the menu item
selected add the necessary componenets to the content
pane for that menu item, and when finished just remove
those components from the content pane.
The alternative methods to this seem to be: just use
multiple windows or use internal frames. Again, each
menu item will correspond to a unique interface.
As such, what method is typically followed? From
a design perspective, is one of these methods
typically held as being a cleaner solution over the
others?
2) In terms of populating your content pane with
swing components, I've seen the method of
following a has-a relationship. You might
start out with a class that creates a panel and
adds some buttons. Another class, say for
creating a check box, would extend your
panel/button class. In the case from 1) above,
where a menu system creates a branching
effect for different kinds of interfaces(content
panes with different components that are removed
when a different menu item is selected), what kind
of design methodology should be followed? It
doesn't seem like the above panel/button <-- checkbox
containment example would work here.
I hope that was clear.
the menu bar will change the content pane. Would the
ideal way of doing this be as follows: for the menu item
selected add the necessary componenets to the content
pane for that menu item, and when finished just remove
those components from the content pane.
The alternative methods to this seem to be: just use
multiple windows or use internal frames. Again, each
menu item will correspond to a unique interface.
As such, what method is typically followed? From
a design perspective, is one of these methods
typically held as being a cleaner solution over the
others?
2) In terms of populating your content pane with
swing components, I've seen the method of
following a has-a relationship. You might
start out with a class that creates a panel and
adds some buttons. Another class, say for
creating a check box, would extend your
panel/button class. In the case from 1) above,
where a menu system creates a branching
effect for different kinds of interfaces(content
panes with different components that are removed
when a different menu item is selected), what kind
of design methodology should be followed? It
doesn't seem like the above panel/button <-- checkbox
containment example would work here.
I hope that was clear.