jdk/src/macosx/classes/sun/lwawt/LWScrollBarPeer.java
changeset 17414 3e422b97a601
parent 13993 8b3fe3d8badb
child 20153 d5bf90bfcb6d
equal deleted inserted replaced
17413:24f5b8a8eb22 17414:3e422b97a601
     1 /*
     1 /*
     2  * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    54 
    54 
    55     @Override
    55     @Override
    56     void initializeImpl() {
    56     void initializeImpl() {
    57         super.initializeImpl();
    57         super.initializeImpl();
    58         final Scrollbar target = getTarget();
    58         final Scrollbar target = getTarget();
       
    59         setLineIncrement(target.getUnitIncrement());
       
    60         setPageIncrement(target.getBlockIncrement());
    59         setValues(target.getValue(), target.getVisibleAmount(),
    61         setValues(target.getValue(), target.getVisibleAmount(),
    60                   target.getMinimum(), target.getMaximum());
    62                   target.getMinimum(), target.getMaximum());
    61 
    63 
    62         final int orientation = target.getOrientation();
    64         final int orientation = target.getOrientation();
    63         final JScrollBar delegate = getDelegate();
    65         final JScrollBar delegate = getDelegate();