drmaa
drmaa

Reputation: 3674

How to hide the border around the panel created by jscrollbar?

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. My GUI front end

Upvotes: 0

Views: 65

Answers (1)

414v32
414v32

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

Related Questions