Reputation: 3411
I am using a container with a scrollbar like this:
containerNumbers.setScrollableX(true);
containerNumbers.setScrollVisible(true);
In addition, I have set the theme constants:
fadeScrollBarBool = false
fadeScrollEdgeBool = false
Still the scrollbar continues fading and I can see no indicator edges. The scrollbar is at the bottom, where it is very narrow and almost invisible.
I would like to have a somewhat wider scrollbar that is easily perceivable.
I have seen a tutorial here , but it seems a little dificult to achieve.
Is there any easy approach to set the scrollbar?
Upvotes: 2
Views: 64
Reputation: 52770
That tutorial is super old and you shouldn't refer to it as a guide.
Make sure the theme constant was set correctly by invoking in your init(Object)
method:
UIManager().getLookAndFeel().setFadeScrollBar(false);
Upvotes: 1