Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to disable combobox items

 
Anuj Joshi
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How to disable perticular item in comboBox.
I have a ComboBox with names stored in it.
on some codition I have to make some names disable.
So how can I do this?
 
Christian Dillinger
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Implement it in your model so it doesn't list them. But that's no topic for this forum.... Goto Swing or AWT.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic