|
-
Oct 20th, 2005, 05:46 PM
#1
Thread Starter
Fanatic Member
Message boxes
How can i create a message box using java code?
Last edited by x-ice; Feb 25th, 2007 at 07:16 PM.
-
Oct 20th, 2005, 06:30 PM
#2
Frenzied Member
Re: Message boxes
JOptionPane.
Several versions exist...But for messages:
JOptionPane.showMessageDialog(null,"String message");
-
Oct 20th, 2005, 06:33 PM
#3
Thread Starter
Fanatic Member
Re: Message boxes
 Originally Posted by System_Error
JOptionPane.
Several versions exist...But for messages:
JOptionPane.showMessageDialog(null,"String message");
Do i need to import any class libraries for that?
-
Oct 20th, 2005, 06:35 PM
#4
Frenzied Member
Re: Message boxes
Yes:
import javax.swing.*;
or you can fully qualify the name:
javax.swing.JOptionPane.showMessageDialog(null,"sadfasdf");
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|