• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Noneditable Combo

 
Sridevi Sangaiah
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic