simple question about JFrame
i have oneJFrame that, when a button is pushed,
starts a childJFrame
the childJFrame needs to change thefont, or
whatever, of a widget in the parentJFrame.
what is the best approach?
i can only think of anInterface for eachJFrame and
then have lots of
"get..()" and "set..()" for attributes in the widgets.
this seems troublesome and ugly?
i've no idea.
[471 byte] By [
dew2hirooa] at [2007-11-27 8:35:50]

# 2
> Else, all you need is to pass the parent JFrame
> instance as an argument to the children so that they
> know on what object to operate.
by using the concrete parent class rather than an interface
in the constructor signature,
you are tightly binding the parent and child.
which i guess is a logical design, in a gui.
makes sense to me
just hope i won't regret this design in a few days.. :-)