jdk/src/macosx/classes/sun/lwawt/LWScrollBarPeer.java
changeset 17414 3e422b97a601
parent 13993 8b3fe3d8badb
child 20153 d5bf90bfcb6d
--- a/jdk/src/macosx/classes/sun/lwawt/LWScrollBarPeer.java	Tue May 14 16:39:55 2013 +0400
+++ b/jdk/src/macosx/classes/sun/lwawt/LWScrollBarPeer.java	Tue May 14 17:25:59 2013 +0400
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -56,6 +56,8 @@
     void initializeImpl() {
         super.initializeImpl();
         final Scrollbar target = getTarget();
+        setLineIncrement(target.getUnitIncrement());
+        setPageIncrement(target.getBlockIncrement());
         setValues(target.getValue(), target.getVisibleAmount(),
                   target.getMinimum(), target.getMaximum());