Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2013
    Posts
    1
    Rep Power
    0

    Exclamation Error on maing a simple dialogue box.

    The following code:
    "import javax.swing.JOptionPane;
    public class FirstDialog
    {
    public static void main (String [] args)
    {
    JOptionPane.showMessageDialog (null,"First Java Dialog");
    System.exit (0);


    }

    }"
    Is showing the following error"
    "Exception in thread "main" java.lang.Error: Unresolved compilation problem:
    The method printIn(String) is undefined for the type PrintStream

    at First.main(First.java:5)
    "
    Please help.

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,988
    Rep Power
    21

    Default Re: Error on maing a simple dialogue box.

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,988
    Rep Power
    21

    Default Re: Error on maing a simple dialogue box.

    Exactly how are you attempting to run the code?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    14,288
    Blog Entries
    7
    Rep Power
    24

    Default Re: Error on maing a simple dialogue box.

    You're not trying to use any 'printIn' method anywhere in your code; you're not showing us the code you're trying to run.

    kind regards,

    Jos
    The only person who got everything done by Friday was Robinson Crusoe.

Similar Threads

  1. pop up dialogue box on start
    By africanhacker in forum New To Java
    Replies: 1
    Last Post: 03-25-2011, 04:49 PM
  2. Dialogue box on click: Netbeans
    By africanhacker in forum New To Java
    Replies: 3
    Last Post: 03-25-2011, 02:15 PM
  3. Dialogue box on click: Netbeans
    By africanhacker in forum NetBeans
    Replies: 0
    Last Post: 03-25-2011, 02:14 PM
  4. 30 line simple gui, simple error, need help
    By cc11rocks in forum New To Java
    Replies: 6
    Last Post: 02-05-2011, 09:33 PM
  5. Three Different Dialogue Boxes
    By lala in forum New To Java
    Replies: 7
    Last Post: 10-29-2010, 07:04 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •