Solved

popup a list of buttons of clicking JButton

Posted on 2010-11-13
3
368 Views
Last Modified: 2012-05-10
I want a list of JButtons to popup on pressing a JButton.

Something like a menu ..

How can I do that ...?
(it is too much to ask but still if some one can give some code snippet .. that will be a good start for me :(  )

thanks in advance
0
Comment
Question by:hipal
  • 2
3 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
Comment Utility
Just add a load of buttons to a JPanel and add that to a JDialog
0
 

Author Comment

by:hipal
Comment Utility
how about a JMenu ?

I can trying to lay them out in some fancy way (as in not just a list ..may me like buttons in a circle) can you please suggest something.. or is it impossible or very complicated to do ?
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
Well a JMenu would be easier ;)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…

728 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

9 Experts available now in Live!

Get 1:1 Help Now