Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

create a basic java menu for user input

Posted on 2013-01-24
2
Medium Priority
?
265 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 1500 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

876 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