Solved

create a basic java menu for user input

Posted on 2013-01-24
2
253 Views
Last Modified: 2013-02-03
I need to create a GUI pop up, which will present the user with 3 options.
Each selection will trigger an action.
The Pop up menu will stay up until the user hits an exit option.
Can someone show me the basic GUI Menu code and user input?
I can do the rest.
--------------------------------------------------
Action Menu:

Action 1
Action 2
Action 3

Exit.
------------------------------------------------
0
Comment
Question by:dpalyca755
  • 2
2 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 38818300
Well you could actually use JOptionPane.showOptionDialog. Else
http://docs.oracle.com/javase/tutorial/uiswing/components/menu.html
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 38849136
:)
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Java 1603 Error 2 42
strCount chalenge 3 50
Python Assistance 7 33
Starting to learn JAVA, 7 47
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now