• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why won't my pane scroll?

 
Brandi Love
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • 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 ]
 
Brian Cole
Author
Ranch Hand
Posts: 920
1
  • Mark post as helpful
  • send pies
  • 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
  • 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!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!