aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JScrollPane problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JScrollPane problem" Watch "JScrollPane problem" New topic
Author

JScrollPane problem

Stephen ODonnell
Greenhorn

Joined: Sep 07, 2004
Posts: 19
Hi All,

I'm trying to set the scrollbar to the top as it is always at the bottom. Nothin I try seems to work!!

I have a JFrame with a container:


I then add my panels


createJScrollPane() returns a JScrollPane containing an outer JPanel inside which there are a number of other panels

I cannot figure out why any of the methods I have tried will not work

Any help greatly appreciated.
Thanks,
Stephen.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
can you post createJScrollPane()
Stephen ODonnell
Greenhorn

Joined: Sep 07, 2004
Posts: 19
Hi,

Here it is:
Stephen ODonnell
Greenhorn

Joined: Sep 07, 2004
Posts: 19
Hi Michael,

Thanks for your help, the problem was a silly one. I was setting the frame visible before I added the JScrollPane
:roll:

Thanks again.
Stephen.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JScrollPane problem
 
Similar Threads
to add Scrollbar to Frame in AWT
How to Add Scroll bars to a frame
JScrollPane
Scrolling BIG Images
Scrollbar for jtable