Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » How do I get JOptionPane.showMessageDialog to appear in eclipse(Would like help in understanding how to display JOptionPane.showMessageDialog in eclipse)
How do I get JOptionPane.showMessageDialog to appear in eclipse [message #1446753] Fri, 17 October 2014 08:57 Go to next message
eastcoastlifeoutlook.com Maccaf is currently offline eastcoastlifeoutlook.com MaccafFriend
Messages: 2
Registered: October 2014
Junior Member
hi,
beginner here. would like help in understanding how to get a dialog box to appear in eclipse when running the following code.

very simple code from a java study book:
-------
import javax.swing.JOptionPane; // import class JOptionPane

public class Dialog1
{
private static void main( String[] args)
{
// display a dialog with a message
JOptionPane.showMessageDialog(null, "Welcome\nto\nJava");
} //end main

} // end class Dialog1
-------
thanks,

M
Re: How do I get JOptionPane.showMessageDialog to appear in eclipse [message #1446925 is a reply to message #1446753] Fri, 17 October 2014 14:14 Go to previous message
eastcoastlifeoutlook.com Maccaf is currently offline eastcoastlifeoutlook.com MaccafFriend
Messages: 2
Registered: October 2014
Junior Member
resolved: private declaration of main needed to be public
Previous Topic:Matlab integration
Next Topic:Can't create Java-Project
Goto Forum:
  


Current Time: Thu Apr 25 02:17:17 GMT 2024

Powered by FUDForum. Page generated in 0.06485 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top