Guys
I was wondering if you could help me out...
I have a frame with a scrollpane and would like it to disappear when I press
a button on the frame, at the moment it just loses focus and moves to the
back. It's a simple program with new frames popping up and then hiding when
I'm finished with them. I pass a "MyOwner" parameter in the frames
constructor and normally just do something like this...
void btnReturn_actionPerformed(ActionEvent e)
{
this.hide();
myOwner.show();
}
I've gone through all the setVisible(false) combinations I can think of and
a Google search hasn't come up trumps, so ...
HELP! :)
jon
ninhoa@yahoo.es - 15 Mar 2005 16:45 GMT
> void btnReturn_actionPerformed(ActionEvent e)
> {
> this.hide();
> myOwner.show();
> }
Something like this?
this.dispose();
myOwner.setVisible(true);
Note: show() and hide() are deprecated methods