Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Handling scrollpanes

 
Mohan Lavu
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a problem with Scrollpanes.I have a panel on which i do all the drawing with the graphics context and the panel's preferred size is set.I have a frame in which i have an instance of the above class which extends a panel and a scrollpane to which this instance is added.The scrollpanes preferred size is also set.when i execute the application i get the scrollbars as i have includes scrollbarconstants as ALWAYS.The problem is i am able to scroll up to the scrollpane's dimesnions only.can any one tell me why this is happening like this??? I am bogged down with this problem for a day..
Thank You.
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mohan,
I am not sure exactly what you have, but compare it to the code below because it works!

Regards,
Manfred.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic