> I am in need of retrieving the track size of a vertical
> JScrollBar,
[...]
> Now, I've checked the API but no luck, is this possible?
My guess, I didn't look it up, would be that this stuff is hard-coded
somewhere in each PLAF. And that there is no API, probably not even an
undocumented, to obtain this information.
Why do you think you need to know this?
/Thomas

Signature
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/
Robert - 23 May 2006 09:44 GMT
I am building a "relative gutter", need to mark certain
places in the document, and these should map to the JScrollbar's track,
so one can easily find the right location in the document.
Perhaps, there is another solution the my problem.
// Robert
Thomas Weidenfeller - 23 May 2006 10:28 GMT
> I am building a "relative gutter", need to mark certain
> places in the document, and these should map to the JScrollbar's track,
> so one can easily find the right location in the document.
https://flamingo.dev.java.net/docs/file-viewer.html 's
RelativeGutterPanel is maybe what you want. There the markers are not
aligned with the scroll bar, but with the text panel as such. And the
markers are clickable, so one doesn't have to rely on a 1:1 match with
the scroll bar position.
/Thomas

Signature
The comp.lang.java.gui FAQ:
ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq
http://www.uni-giessen.de/faq/archiv/computer-lang.java.gui.faq/
Robert - 23 May 2006 10:56 GMT
Thanks for the pointer I'll give it a try.
// Robert