File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
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: 37
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: 4658
    
    5

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: 39791
    
  28
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://aspose.com/file-tools
 
subject: ChatDialog just goes Invisible when I press the X