Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Add Components in JScrollPane

 
vinay vishal
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I want to add multiple no of radio button in scroll pane. when i am adding N number of radio button Scrollbar doesn't work.

Thanks,
vinay
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
give the scrollpane a preferredSize

scrollPane.setPreferredSize(new Dimension(x,y));
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic