wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes Handling scrollpanes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Handling scrollpanes" Watch "Handling scrollpanes" New topic
Author

Handling scrollpanes

Mohan Lavu
Greenhorn

Joined: May 25, 2001
Posts: 4
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

Joined: Jan 09, 2001
Posts: 1492
Hi Mohan,
I am not sure exactly what you have, but compare it to the code below because it works!

Regards,
Manfred.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Handling scrollpanes
 
Similar Threads
How to create resizable swing components as in Netbeans Swings (GUI), drag and drop?
Does FlowLayout honor the preferred size of a JPanel?
Resizing issues in JTree
JScrollPane JViewport question
Maximize button in JDialog