• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Restoring a minimized JFrame

 
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks,
i figured it out for my self.
setState(JFrame.NORMAL);
..thnx
...saj
 
Bartender
Posts: 1104
10
Netbeans IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sandeep Kr,
Your post was moved to a https://coderanch.com:80/t/608805";" target="_new" rel="nofollow">new topic.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic