• Post Reply Bookmark Topic Watch Topic
  • New Topic

scroll pane in jpanel help  RSS feed

 
supriya riya
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i am not able to view scroll panel when i add more data to panel,scroll pane dose not show
i even tried this


but still the scroll pane is inactive after data in panel exceeds the given size it just does not scroll!!



my code for scroll panel is below.
 
pete stein
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps someone else can help you, but I myself can't tell what is wrong based on the information presented. The only thing suspicious that I see is that you're setting the preferred size of one of the JPanels that you display within a JScrollPane, and if so, the panel likely won't change size even if new components are added to it.

Regardless, if you don't get a decent answer soon, please check out these links:

TellTheDetails
How to ask questions
Creating an SSCCE
HowToAskQuestionsOnJavaRanch
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!