src/java.desktop/share/classes/java/awt/ScrollPane.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1996, 2014, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1996, 2015, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 22,32 **** * or visit www.oracle.com if you need additional information or have any * questions. */ package java.awt; - import java.awt.peer.LightweightPeer; import java.awt.peer.ScrollPanePeer; import java.awt.event.*; import javax.accessibility.*; import sun.awt.ScrollPaneWheelScroller; import sun.awt.SunToolkit; --- 22,31 ----
*** 560,570 **** vAdjustable.setValue(0); hAdjustable.setValue(0); } if (peer == null) ! peer = getToolkit().createScrollPane(this); super.addNotify(); // Bug 4124460. Restore the adjustable values. if (getComponentCount() > 0) { vAdjustable.setValue(vAdjustableValue); --- 559,569 ---- vAdjustable.setValue(0); hAdjustable.setValue(0); } if (peer == null) ! peer = getComponentFactory().createScrollPane(this); super.addNotify(); // Bug 4124460. Restore the adjustable values. if (getComponentCount() > 0) { vAdjustable.setValue(vAdjustableValue);