• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to add scrollbar

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello sir

i am making a project in swing .... i have different labels and text fields in it ....

in the last of the form when the page get full then the remaining labels and text fields going down to the page ,,,,,,, and i am not able to see then ... can you please tell me that how to add scrollbar to that ....so that i am i will be able to see the all contents on that particular page ...

how to add scrollbar on that page ...

please help me its urgent...

Sincere Regards

Gaurav Chhabra
 
Ranch Hand
Posts: 410
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You don't actually add a scrollbar to your page - you add your page to a scrollpane. Presumably your components are being added to a JPanel. Then you just need to create a JScrollPane, add your JPanel to it, and then add your JScrollPane to your frame (or whatever).

Hope this helps.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic