[Swing] JScrollPane 스크롤 속도 설정하는 법.
public class Frame extends JFrame { public Frame() { setTitle("Control wheel speed of JScrollPane"); setSize(500, 500); getContentPane().setLayout(null); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JScrollPane jsp = new JScrollPane(); jsp.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER); jsp.getVerticalScrollBar().setUnitIncrement(16);//스크롤 속도 jsp.setBorder(null);..
Java/Swing
2011. 7. 15. 14:17