Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ScrollPane - transparent track issue

dukkeJun 5 2012 — edited Jun 6 2012
Hi,

I'm trying to achieve a minimal look in a ScrollPane on a project of mine.
To do this I only want to show the ScrollPane thumbs and nothing else.
One of the things I've done to try to achieve this was to put the
background of the tracks transparent the problem is that what is shown
instead of the track is the ScrollPane background excluding it's contents.
The result is a gap between the scrollpane contents and its edges with the
scrollpane background in between.

I guess that the contents of the scrollpane are only being drawn till the
scrollpane track is reached, what needs to be done to get my problem fixed
is that they need to be drawn all the way till the edges of the scrollpane.

Did I explain my problem clearly enough or do I need to rewrite it?

Thanks in advance, best regards,

P.S: I'm using javafx 2.1.
I've already tried:
.scroll-bar .track {
visibility: hidden;
}
with no success.
This post has been answered by jsmith on Jun 6 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 4 2012
Added on Jun 5 2012
7 comments
1,751 views