JDialog or JOptionPane...

Hi!Is there any way to create a window in some block of code and kill him in another block below? I need to create a window which won't wait for OK click or something, just it comes when I create him and dissappears when I want. How to do that?
[259 byte] By [blelumpa] at [2007-11-27 6:05:05]
# 1
You can install a TimerTask-object who watches for a specific time you want if the user did an action. Then you can close the frame/dialog or what ever there.
Oleka at 2007-7-12 16:50:26 > top of Java-index,Desktop,Core GUI APIs...
# 2
Don't make the window modal. Keep a reference to the window and then use the dispose() or setVisible( false ) method to close it.
camickra at 2007-7-12 16:50:26 > top of Java-index,Desktop,Core GUI APIs...