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 2 of 2

Thread: which is better jdialog or joptionpane?

  1. #1
    Junior Member tonu's Avatar
    Join Date
    Dec 2013
    Posts
    9
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default which is better jdialog or joptionpane?

    which is better jdialog or joptionpane?
    and when to use each one?


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,520
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: which is better jdialog or joptionpane?

    Both are useful tools. JOptionPane dialogs provide ready-made GUI interfaces that can be used to communicate simple messages and gather simple inputs and button-click responses. When those aren't enough, JDialogs can be used. There isn't a clean line that divides when one should be used over the other, but you'll develop your own, based primarily (I believe) on personal preference.

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

    tonu (January 6th, 2014)

Similar Threads

  1. Is a modal JDialog possible in this scenario?
    By JAPA1972 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: September 17th, 2013, 04:01 AM
  2. Need some help with this JFrame, or JDialog.
    By MR bruto in forum What's Wrong With My Code?
    Replies: 7
    Last Post: May 10th, 2013, 08:14 AM
  3. JDialog not working properly
    By agarta in forum What's Wrong With My Code?
    Replies: 4
    Last Post: March 24th, 2013, 10:46 PM
  4. JDialog Failing to Render...
    By snowguy13 in forum AWT / Java Swing
    Replies: 2
    Last Post: April 7th, 2012, 11:55 AM
  5. [SOLVED] sending a parameter to a new JDialog
    By luisp88 in forum AWT / Java Swing
    Replies: 4
    Last Post: October 5th, 2011, 09:31 AM

Tags for this Thread