Reputation: 3674
After I added JScrollbar to my Jpanel I noticed that it created a border around my jpanel which looks very weird. From the attached figure you can see that the JPanel "Plot fault domain" in GUI contains a second border. How can I keep the scrollbar but hide the border? thanks.
Upvotes: 0
Views: 65
Reputation: 562
You can try to set an empty border to the JScrollBar.
JScrollBar jsb = ...;
jsb.setBorder(new EmptyBorder(0, 0, 0, 0));
Upvotes: 4