Hello!
I am also quite new to Java... and am happy to find forum like this...
if I am not mistaken, if you mean message dialog box...
I tried this... but it's probably not what you're looking for...
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class MyTest extends JFrame {
public MyTest() {
super( "Message Dialog Box Test" );
JOptionPane.showMessageDialog( MyTest.this, "Have fun!", "MyTest",
JOptionPane.INFORMATION_MESSAGE );
}
public static void main( String args[] ) {
MyTest app = new MyTest();
app.addWindowListener(
new WindowAdapter() {
public void windowClosing( WindowEvent e ) {
System.exit( 0 );
}
}
);
}
}