I need to design this scrollbar for all my scrollpanes :

With Java Swing. I am using Netbeans IDE. What is the simplest solution ?
Thank you very much.
Regards
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can customize the look of a Swing component by setting a custom UI. In the case of a scroll pane’s scroll bar, you do
where
MyScrollBarUIis derived fromjavax.swing.plaf.basic.BasicScrollBarUI. To do this for all scroll bars (not only inJScrollPaneinstances), callbefore you create any Swing components.
In
MyScrollBarUI, you override the following methods:Your scroll bar is graphically very simple, so it should not be too hard to implement.