Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jcombobox or Jlist?

 
pras
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
suppose take a browser address bar drop down as a example

its equivalent swing component is a Jlist or a Jcombobox?

please help java masters?
 
bart zagers
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What you want is an editable combobox see also here. A JList typically does not collapse/expand like a combobox does.
 
pras
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what happens when we write a java program for a combobox only?
ie involving only jcombobox objects

what about the rest of the window ? does it get created by default?


Thanks and regards,
Prasanna.s.k

cheers javaranch
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic