This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jcombobox or Jlist?  RSS feed

 
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
Boost this thread!