Remove « JScrollPane « Java Swing Q&A





1. removing the vertical scroll bar in a jscrollpane?    stackoverflow.com

Is it possible to remove the vertical scroll bar in a JScrollPane?

3. i want to remove JScrollPane from panel    java-forums.org

simply calling remove will do this. You'll need to call revalidate on the contentPane (cast as a JPanel) and repaint on it as well. If this doesn't work, then your best bet here is to show us compilable code. We don't want to see your whole program, but rather you should condense your code into the smallest bit that still compiles, ...