This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes Restoring a minimized JFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Restoring a minimized JFrame" Watch "Restoring a minimized JFrame" New topic
Author

Restoring a minimized JFrame

Sajee Joseph
Ranch Hand

Joined: Jan 17, 2001
Posts: 200
Hi everybody,
I'm developing a chat application. Its almost over , but I have a problem here. Imgaine that a person is chatting with several people. Each of these chat boxes is a JFrame. So the user may minimize(iconify) any of these chat boxes(JFrames). In each of these JFrames i can know if some message comes in it. But suppose that a message came at a chatbox(JFrame) which was minimized, how do i restore the JFrame so that it is displayed on the screen. I Tried several things like.. show(); setVisisble(true); toFront().. etc... Please help me out
..Thanking you in advance...
...Kindest Regards
...saj
Sajee Joseph
Ranch Hand

Joined: Jan 17, 2001
Posts: 200
Thanks,
i figured it out for my self.
setState(JFrame.NORMAL);
..thnx
...saj
Ranganathan Kaliyur Mannar
Bartender

Joined: Oct 16, 2003
Posts: 1076
    
  10

Sandeep Kr,
Your post was moved to a new topic.


Ranga.
SCJP 1.4, OCMJEA/SCEA 5.0.
 
Consider Paul's rocket mass heater.
 
subject: Restoring a minimized JFrame