| 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
|
|
|
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
|
|
|
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.
|
 |
 |
|
|
subject: ChatDialog just goes Invisible when I press the X
|
|
|