Results 1 to 4 of 4

Thread: JOptionPane

  1. #1
    hfbroady is offline Member
    Join Date
    Nov 2010
    Posts
    1
    Rep Power
    0

    Smile JOptionPane

    I'm trying to get three different inputs from the user in one JOptionPane.showInputDialog. I figured out how to use the JOptionPane.showMessageDialog to print any number of outputs, I don't need the whole code just the few lines that will allow me to get three inputs from the users. I need to do calculations on them too. Thank you

  2. #2
    venerik is offline Member
    Join Date
    Oct 2010
    Posts
    94
    Rep Power
    0

    Default

    Using one of Zack's quotes:

    Quote Originally Posted by Zack View Post
    This isn't a homework service. Show some effort before you ask for help.
    Cheers,
    Erik
    I'm new to Java but I like to help where ever I can. :)

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default

    The message argument to a JOptionPane#showXxxDialog method can be any object.

    If you pass a JPanel with appropriate layout and components, it will be displayed in the JOptionPane and any editable text components, combo boxes etc. will be available for user input.

    db

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by hfbroady View Post
    I'm trying to get three different inputs from the user in one JOptionPane.showInputDialog. I figured out how to use the JOptionPane.showMessageDialog to print any number of outputs, I don't need the whole code just the few lines that will allow me to get three inputs from the users. I need to do calculations on them too. Thank you
    Did you try-out anything yet?

Similar Threads

  1. JOptionPane
    By izzy in forum New To Java
    Replies: 1
    Last Post: 03-17-2010, 04:55 PM
  2. Help with JOptionPane
    By sanctishit in forum New To Java
    Replies: 1
    Last Post: 03-10-2010, 10:20 AM
  3. need help with a JOptionPane
    By dr4g0nk1ng in forum Advanced Java
    Replies: 2
    Last Post: 02-19-2010, 09:40 PM
  4. JOptionPane
    By Mir in forum New To Java
    Replies: 5
    Last Post: 11-29-2008, 02:04 AM
  5. JOptionPane
    By whosadork in forum New To Java
    Replies: 2
    Last Post: 10-23-2008, 02:17 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
  •