aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Is there any way to bring the a Vertical Scroll Bars of the Scroll Pane at the Bottom by default??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Is there any way to bring the a Vertical Scroll Bars of the Scroll Pane at the Bottom by default???" Watch "Is there any way to bring the a Vertical Scroll Bars of the Scroll Pane at the Bottom by default???" New topic
Author

Is there any way to bring the a Vertical Scroll Bars of the Scroll Pane at the Bottom by default???

Chinmay Kant
Greenhorn

Joined: Feb 04, 2008
Posts: 20
Hi,

Is there any way to bring the a Vertical Scroll Bars of the Scroll Pane at the Bottom by default???

My problem is that I need to have a vertical scroll bar not at top but at the bottom of the Pane by default i.e when window is created.
Currently the scroll bar is at top.

Thanks in advance !!!


Thanks and Regards,
Chinmay
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10523
    
    9

Why do you want to do that? Are you displaying some data, inside the scroll pane? What component?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19762
    
  20

How did you get the scroll bar at the top anyway? JScrollPane always put it at the bottom for me.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10523
    
    9

Are we talking about the scrollbar slider? For me it is on top by default.
e.g. if I got a table with 50 rows, the 1st row is visible instead of the last one. (on Windows)
Chinmay Kant
Greenhorn

Joined: Feb 04, 2008
Posts: 20
Yes I am talking of Sliders only.

Currently, in My Scroll Pane, i have a panel on which a image is shown.

The vertical slider for this image should by default be at bottom of scroll pane
which currently is coming at the top of scroll pane.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10523
    
    9

Strange.
Can you post a sscce code which demonstrates this probem?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Is there any way to bring the a Vertical Scroll Bars of the Scroll Pane at the Bottom by default???