I was looking for a solution to remove default border in AWT ScrollPane.
In JScrollPane its rather simple..
paneScrollPane.setBorder(BorderFactory.createEmptyBorder());
or
paneScrollPane.setBorder(null);
Just wanted to know can we achieve the same effect in case of ScrollPane
This probably is not possible. One of the main drawbacks of
AWTwas that you can’t actually draw over or customize the view of yourAWTcomponent.The only recommendation I might make would be that you could try creating Canvases around your ScrollPanel that draw over the border.