Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: need help in JOptionPane

  1. #1
    Junior Member
    Join Date
    Dec 2013
    Posts
    17
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default need help in JOptionPane

    i create a program , that has a ComboBox
    i made that when i click on the last item JOptionPane.ShowInputDialog appear
    i made when it isEmpty(); no thing add in the Combobox
    all that is work !!

    but when i close or canel the JOptionPane , it's give me an error

    what i should do please ?/
    Last edited by Zuckerberg; January 28th, 2014 at 03:40 AM. Reason: edit the title


  2. #2
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    610
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: need help in JOptionPane

    Fix line 56!
    Seriously, what errors do you get? Post an SSCCE

  3. #3
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,803
    My Mood
    Mellow
    Thanks
    236
    Thanked 717 Times in 703 Posts

    Default Re: need help in JOptionPane

    @PhHein: How do you get line 56? Did the OP edit that out?

    @Zuckerberg: Please use the editing feature sparingly. Editing your post so that it doesn't make sense any more is pointless. Also, if you're getting errors, post the entire error, copied and pasted into the post as text. Use code/highlight or quote tags if the error text is long or the formatting is important, and it usually is.

  4. #4
    Senior Member PhHein's Avatar
    Join Date
    Mar 2013
    Location
    Germany
    Posts
    610
    My Mood
    Sleepy
    Thanks
    10
    Thanked 93 Times in 86 Posts

    Default Re: need help in JOptionPane

    No, Greg, it was my crystal ball, which just came back from service. The OP didn't edit anything. Sorry for the confusion.

  5. #5
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,803
    My Mood
    Mellow
    Thanks
    236
    Thanked 717 Times in 703 Posts

    Default Re: need help in JOptionPane

    Ah, glad to hear it's out of the shop and working well.

    @Zuckerberg: Still good advice, but apparently you only edited the title of the thread, probably for the better. Thank you for that.

  6. The Following User Says Thank You to GregBrannon For This Useful Post:

    Zuckerberg (January 29th, 2014)

Similar Threads

  1. I'm confused
    By Wonderlandslost in forum What's Wrong With My Code?
    Replies: 7
    Last Post: March 2nd, 2012, 12:33 PM
  2. [SOLVED] confused
    By joon in forum What's Wrong With My Code?
    Replies: 4
    Last Post: June 12th, 2011, 11:40 AM
  3. I'm confused...
    By acolar in forum Object Oriented Programming
    Replies: 1
    Last Post: April 14th, 2011, 12:14 PM
  4. Confused about Arrays and JOptionPane!
    By Java Neil in forum What's Wrong With My Code?
    Replies: 4
    Last Post: March 4th, 2011, 03:55 PM
  5. JOptionPane using If and Else
    By Liuric in forum Member Introductions
    Replies: 7
    Last Post: October 1st, 2010, 12:05 AM