• 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
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!