Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JList (Scrollable?)

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to create an application in Swing with a scrollable JList, I know in AWT it is merely a boolean setting. I can't find a way to set it in Swing.... Help
 
Glen Tanner
Ranch Hand
Posts: 147
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JList doesn't support scrolling directly. To create a scrolling list you make the JList the viewport view of a JScrollPane.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great thanks alot Glenn
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic