Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / March 2005

Tip: Looking for answers? Try searching our database.

Frame with ScrollPane not hide()ing...

Thread view: 
technohobbit - 14 Mar 2005 00:05 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.