• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Why won't my pane scroll?

 
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All!

I've written the code below to create and show a GUI for a test program that I am creating. My problem , that when I put text larger than the scroll pane in either of the JTextAreas that I've created they do not scroll even though I've set them to. I can't figure out what - I must be missing something silly. Does anyone see a problem? I've bolded the important pieces of code. Please not that any variables I have not instantiated here are global - I'm positive I haven't forgotten to declare anything.


[ June 12, 2007: Message edited by: Brandi Love ]
 
Author
Posts: 986
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You are adding inst to your container, when you should be adding instPane. You probably also want to set the border on instPane, not inst.
 
Brandi Love
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I knew I was missing something silly! I think I've been staring at the screen for far too long. Thanks, Brian!
 
Don't listen to Steve. Just read this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic