Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » joptionpane(messages do not appear)
joptionpane [message #794104] Wed, 08 February 2012 23:05 Go to next message
pasi s is currently offline pasi sFriend
Messages: 3
Registered: February 2012
Junior Member
Hi!
I have recently started learning Java and I have the code below. When I run the code, using eclipse, the pop up window appears but without the message "ABC". The same problem appears with other methods from the same class.

import javax.swing.*;

public class EA38 {

public static void main(String[] args) {

JOptionPane.showMessageDialog(null, "ABC");
System.exit(0);
}
}

Re: joptionpane [message #794748 is a reply to message #794104] Thu, 09 February 2012 16:58 Go to previous messageGo to next message
Nick Clevery is currently offline Nick CleveryFriend
Messages: 50
Registered: January 2012
Member
Hi, I tested your code in my Eclipse, it is working properly!
Could you capture the screen-shot?
Re: joptionpane [message #795306 is a reply to message #794748] Fri, 10 February 2012 10:05 Go to previous messageGo to next message
pasi s is currently offline pasi sFriend
Messages: 3
Registered: February 2012
Junior Member
I send you the whole screenshot from eclipse.
I can understand that there is nothing wrong with the code.
I have also tried running it from command line and the same problem appears there too.
Re: joptionpane [message #796633 is a reply to message #795306] Sun, 12 February 2012 09:18 Go to previous messageGo to next message
Nick Clevery is currently offline Nick CleveryFriend
Messages: 50
Registered: January 2012
Member
I could not re-produce the problem in my environment, which version of Eclipse and JDK are you using?
Re: joptionpane [message #796796 is a reply to message #796633] Sun, 12 February 2012 15:34 Go to previous message
pasi s is currently offline pasi sFriend
Messages: 3
Registered: February 2012
Junior Member
Eclipse Java EE IDE for Web Developers.
Galileo
Version: 1.2.2.20100217-2310
jdk 1.6
Previous Topic:Exception in thread "main"
Next Topic:Color problem in comparison editor using Aptana plugin
Goto Forum:
  


Current Time: Thu Mar 28 09:13:58 GMT 2024

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

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

Back to the top