Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 11th, 2006, 12:23 AM   #1
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 856
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
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.)
titaniumdecoy is offline   Reply With Quote
Old Mar 11th, 2006, 1:04 AM   #2
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 763
Rep Power: 3 Jimbo is on a distinguished road
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...
Jimbo is offline   Reply With Quote
Old Mar 11th, 2006, 8:43 PM   #3
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 856
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
I'm looking for a drop-down menu that is not editable...
titaniumdecoy is offline   Reply With Quote
Old Mar 11th, 2006, 9:16 PM   #4
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
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!
ReggaetonKing is offline   Reply With Quote
Old Mar 11th, 2006, 9:26 PM   #5
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 856
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
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.
titaniumdecoy is offline   Reply With Quote
Old Mar 11th, 2006, 9:41 PM   #6
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
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!
ReggaetonKing is offline   Reply With Quote
Old Mar 11th, 2006, 10:17 PM   #7
titaniumdecoy
Expert Programmer
 
titaniumdecoy's Avatar
 
Join Date: Nov 2005
Posts: 856
Rep Power: 3 titaniumdecoy is on a distinguished road
Send a message via AIM to titaniumdecoy
No problem; that's probably because I don't ask Java-related questions on this forum very often.
titaniumdecoy is offline   Reply With Quote
Old Mar 12th, 2006, 11:17 AM   #8
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
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!
ReggaetonKing is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:48 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC