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
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
Don't forget that if you plan to use the UIManager to override all scrollbars like this
then your SimpleScrollBarUI class must have the createUI method, i.e:
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
MyScrollBarUI
is derived fromjavax.swing.plaf.basic.BasicScrollBarUI
. To do this for all scroll bars (not only inJScrollPane
instances), 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.
1) override JToolBar
2) most of Custom Look and Feel overrode that