본문 바로가기 메뉴 바로가기

MLog

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

MLog

검색하기 폼
  • All (99)
    • Linux (17)
      • Tomcat (1)
      • Ubuntu (7)
    • Java (13)
      • Swing (7)
      • Android (3)
      • Eclipse (5)
      • Spring (3)
      • POI (12)
    • Web (5)
      • Java Script (2)
      • CSS (0)
      • PHP (0)
      • HTML (2)
      • JSP (1)
    • Database (13)
      • MySQL (13)
    • Others (9)
    • Sales (0)
    • AVR (1)
    • Windows (7)
      • VBA 매크로 (2)
      • Excel (4)
    • 짤 (0)
    • 기기 (3)
  • 방명록

scroll (1)
[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
이전 1 다음
이전 다음

Blog is powered by Tistory / Designed by Tistory

티스토리툴바