![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Expert Programmer
|
Java Popup Menu
Does anyone know how to implement a popup (dropdown) menu in Java? I'm talking about the kind that can be placed in a window, not the kind that is part of a menu bar; and not a contextual menu either. The closest thing I have been able to find so far is a JComboBox. The problem with this is that it is meant to be editable (so you can either select data or type in your own data, which I don't want to allow); I could fix this with setEditable(false) but I am really looking for a native dropdown menu. Is this possible in Java, or is JComboBox the closest thing I'll be able to find? (I hope I made all this clear.)
|
|
|
|
|
|
#2 |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 763
Rep Power: 3
![]() |
I don't think I've ever seen a drop-down with an editable option... usually, it's an "Other" with a text input next to it...
|
|
|
|
|
|
#3 |
|
Expert Programmer
|
I'm looking for a drop-down menu that is not editable...
|
|
|
|
|
|
#4 |
|
Sexy Programmer
|
http://javaalmanac.com/egs/javax.swing/Popup.html
http://www.cs.cf.ac.uk/Dave/HCI/HCI_...ER/node82.html here ya go! Hope this works! I think JComboBox the closest thing man!
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#5 |
|
Expert Programmer
|
Thanks for the links, but those seem to create contextual menus, which is not what I'm looking for. I guess JComboBox is the closest thing in Java.
|
|
|
|
|
|
#6 |
|
Sexy Programmer
|
my fault man! I can never since to help you out! You've help me all the time! sorry man!
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
|
|
#7 |
|
Expert Programmer
|
No problem; that's probably because I don't ask Java-related questions on this forum very often.
|
|
|
|
|
|
#8 |
|
Sexy Programmer
|
yeah b/c you seem know everything or at least most of it! lol
__________________
I would love to change the world, but they won't give me the source code! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|