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: Help mewrite this code...

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help mewrite this code...

    Design a GUI application that repeatedly accepts numbers in a option pane and once the typed number is 0 the maximum and minimum of all numbers typed are displayed.


  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: Help mewrite this code...

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

    Get started, post your code when you need help, ask specific questions. Beyond writing it for you, which we won't do, what help do you need?

  3. #3
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Help mewrite this code...

    Are you sure the program is supposed to use a GUI AND a JOptionPane?
    What is the GUI for? What will be shown there vs in a JOptionPane?
    If you don't understand my answer, don't ignore it, ask a question.

  4. #4
    Junior Member
    Join Date
    May 2014
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Help mewrite this code...

    Yes... I need to type the code in java and so I insisted for GUI application. Its a part of my academics... GUI is an interface which we use to create programs in java and I use Net beans IDE for this purpose... The numbers which we type in JOptionPane should be displayed in a jTextField .

  5. #5
    Member Ada Lovelace's Avatar
    Join Date
    May 2014
    Location
    South England UK
    Posts
    414
    My Mood
    Angelic
    Thanks
    27
    Thanked 61 Times in 55 Posts

    Default Re: Help mewrite this code...

    Quote Originally Posted by madhu_gml View Post
    Yes... I need to type the code in java and so I insisted for GUI application. Its a part of my academics... GUI is an interface which we use to create programs in java and I use Net beans IDE for this purpose... The numbers which we type in JOptionPane should be displayed in a jTextField .
    Break the problem down first before writing the actual Java source code.

    What will you need? Well, if it has to repeat , what logical control statement could you use to handle the
    user input?
    Should it have a terminating condition? If so - should it be counter or sentinel controlled?

    When you know these, you can start planning your program in steps. Some to think about:

    1. Do you know how to access the JOptionPane via your IDE?
    2. Do you know how to implement a text box that will print a string?
    3. Do you know how to read input from the user into a Input stream using Swing implementations?

    If you can do all the above - you can solve this problem. Take it one step at a time - and ask if you get stuck.

    Wishes Ada xx
    Last edited by Ada Lovelace; May 27th, 2014 at 02:43 AM. Reason: Fixed grammar errors
    If to Err is human - then programmers are most human of us all.
    "The Analytical Engine offers a new, a vast, and a powerful language . . .
    for the purposes of mankind
    ."
    Augusta Ada Byron, Lady Lovelace (1851)

Similar Threads

  1. Replies: 3
    Last Post: April 27th, 2013, 07:19 AM
  2. Replies: 4
    Last Post: January 24th, 2013, 11:20 AM
  3. Replies: 7
    Last Post: January 24th, 2013, 10:41 AM
  4. Replies: 5
    Last Post: November 14th, 2012, 10:47 AM
  5. Replies: 3
    Last Post: September 3rd, 2012, 11:36 AM