message-dialog

I haveclass PlayersButtonPanelextends JPanelimplements ActionListener.

When the player click a button its color changes.

I have thought that it would be nice if there comes a message also, ex. when 5 buttons have changed color or sth..

I think it could be Dialog with a message-box. How to make a very simple

Dialog-class? So I could call it simply something like this:

Dialog dialog = new Dialog("message").

[550 byte] By [MaritMa] at [2007-9-28 6:47:15]
# 1
JOptionPane.showMessageDialog(frame,"Message"); http://java.sun.com/docs/books/tutorial/uiswing/components/dialog.html#features
xbo_a at 2007-7-9 17:58:34 > top of Java-index,Archived Forums,Java Programming...
# 2
do I have to make my own class which extends JOptionPaneor just call JOptionPane.showMessageDialog(frame,"Message"); ?(sorry, stupid question)
MaritMa at 2007-7-9 17:58:34 > top of Java-index,Archived Forums,Java Programming...
# 3
go to the link it explains the how tos but all you have to do is this JOptionPane.showMessageDialog(frame,"Message"); unless you want a custom one
xbo_a at 2007-7-9 17:58:34 > top of Java-index,Archived Forums,Java Programming...
# 4
thanks for the link and help! :)
MaritMa at 2007-7-9 17:58:34 > top of Java-index,Archived Forums,Java Programming...
# 5
Note - NO ? is stupit the only stupit ? there is is a ? not asked ;-)
xbo_a at 2007-7-9 17:58:34 > top of Java-index,Archived Forums,Java Programming...