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.
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.
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.
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?
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.
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)