Results 1 to 3 of 3
Like Tree1Likes
  • 1 Post By JosAH

Thread: JOptionPane not working

  1. #1
    Chad.Curtiss is offline Member
    Join Date
    Jul 2012
    Posts
    8
    Rep Power
    0

    Question JOptionPane not working

    I get a cannot find symbol error on line one...
    Java code:
    import Javax.swing.JOptionPane;
    public class Main_GUI {
    public static void main(String args []){
    JOptionPane.showMessageDialog(null, "GOOD JOB", JOptionPane.PLAIN_MESSAGE);

    }
    }

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,655
    Blog Entries
    7
    Rep Power
    21

    Default Re: JOptionPane not working

    It's 'javax', not 'Javax'.

    kind regards,

    Jos
    awinston likes this.
    cenosillicaphobia: the fear for an empty beer glass

  3. #3
    BadAlligator is offline Member
    Join Date
    Jul 2012
    Posts
    10
    Rep Power
    0

    Default Re: JOptionPane not working

    import javax.swing.JOptionPane;

Similar Threads

  1. Replies: 2
    Last Post: 02-19-2012, 04:13 PM
  2. Collisions are working & not working
    By Jayayoh in forum Java 2D
    Replies: 1
    Last Post: 06-24-2011, 05:21 PM
  3. Replies: 2
    Last Post: 01-04-2011, 04:30 AM
  4. JOptionPane
    By hfbroady in forum AWT / Swing
    Replies: 3
    Last Post: 11-12-2010, 11:07 AM
  5. Replies: 8
    Last Post: 05-28-2008, 07:00 AM

Posting Permissions

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