aspose file tools*
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 Spring in Action this week in the Spring 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