aspose file tools
The moose likes Swing / AWT / SWT and the fly likes ChatDialog just goes Invisible when I press the X Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "ChatDialog just goes Invisible when I press the X" Watch "ChatDialog just goes Invisible when I press the X" New topic
Author

ChatDialog just goes Invisible when I press the X

joe vasher
Ranch Hand

Joined: Nov 06, 2009
Posts: 35
I made the listener below to open up a ChatDialog(), The ChatDIalog I open, simply turns invisible when I press the X (! I THINK ???) So I reopen it with setVisible(true). is this all working the way I think it is? Is there any dangers doing this. This is a good way to keep a chat history?.?.

P.S. this will be working with threads. I can have several of these ChatDialogs opened or invisible at any one time.

thanks in advance.

Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4163
    
    3

If you don't want the user to be able to close the dialog, set the defaultCloseOperation to DO_NOTHING_ON_CLOSE.


luck, db
There are no new questions, but there may be new answers.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32654
    
    4
You should bookmark the Java Tutorials, because they have all sorts of useful things in. Even a bit about what happens when you close a frame. Consider using dispose as a routine behaviour.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: ChatDialog just goes Invisible when I press the X
 
Similar Threads
Modal revisited
controlling size of part of split pane and another error
Why does this component appear shrunken ?
Populating JList in Parent window from Child window's save button
Dialog focus problem on java 7 and mac osx