tags:

views:

71

answers:

3

I have a Java network application and this is what I want to do: After user logs out, his interface window closes. Now, I want for another window to show up that will say something like: "Thank you for using our application". This final window should be borderless and without any available option, more like a plain picture (jpeg? why not?). By clicking on it, user will be sure to close this final window.

I googled and couldn't fin anything on this matter, it's hard to phrase the question.

I hope someone helps me...

A: 

You have various possibilities, depending on when you want this dialog to display :

You can then use a JWindow with your image inside, and use addMouseListener to wait for the user to click on it.

Valentin Rocher
thanks :)I've been working all day and my mind forgot about addMouseListener
AmateurProgrammer
+3  A: 

http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JWindow.html

A JWindow is a borderless, undecorated JFrame (no titlebar or buttons).

This should be what you need.

Stefan Kendall
exactly what I need, thanks
AmateurProgrammer
+2  A: 

This should help:

http://java.sun.com/docs/books/tutorial/uiswing/events/windowlistener.html

You're interested in the windowClosing and windowClosed events

Silvio Donnini
thank you, highly appreciated
AmateurProgrammer