aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Noneditable Combo Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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
Ranch Hand

Joined: Jul 11, 2001
Posts: 15230

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

Joined: Jun 09, 2003
Posts: 4632
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Noneditable Combo
 
Similar Threads
Problem with JComboBox background colour when using customer renderer
changing contents of a combo box
getting jcombobox mouse over value
whats the significance of hidden variable in JSF ..
how do get selected value from combobox in html