• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

scroll pane in jpanel help

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 1561
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic