This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Noneditable Combo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Noneditable Combo" Watch "Noneditable Combo" New topic
Author

Noneditable Combo

Sridevi Sangaiah
Greenhorn

Joined: Nov 12, 2003
Posts: 12
Hi all,

I have a noneditable combo, say with drop down values 1,2,3,4 and at one point of time, i need to have a value 5 to be selected in the combobox, but i should not add it to the combobox dropdown. Since because it is a non editable combo, i cant say setSelectedItem of a particular value which is not added to the combobox dropdown.

I require an immediate solution for this.

Thanks & Regards
Sridevi
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

I don't understand. You want to select a value that doesn't exist and not add it to the JComboBox?


GenRocket - Experts at Building Test Data
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Noneditable Combo
 
Similar Threads
how do get selected value from combobox in html
getting jcombobox mouse over value
Problem with JComboBox background colour when using customer renderer
changing contents of a combo box
whats the significance of hidden variable in JSF ..