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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
expectj telnet failing 5 45
jboss wildfly 10.1 10 251
Facing this issue for maven proxy setting 2 21
What browser will run Java? 7 73
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 …
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
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 will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

821 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