Solved

create a basic java menu for user input

Posted on 2013-01-24
2
256 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
what is a "java.lang.System Property"   ? 20 65
Java Timer (static) 9 43
nextBoolean(double p) for Random class 3 40
jdbc error in jsp application 20 44
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

815 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

8 Experts available now in Live!

Get 1:1 Help Now