Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JComboBox -how to have a empty item while implementing a model

 
Rajagopal Manohar
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a class that implements the ComboBoxModel and extends AbstractListModel
a JList and a JComboBox use this model now i want the JList to display all the contents of the Model but JComboBox in addition to the contents needs to display a empty or null selection

how to go about it please help
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!