src/share/classes/javax/swing/AbstractButton.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2011, 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) 1997, 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
*** 368,378 **** Dimension size = getSize(); model.setArmed(true); model.setPressed(true); paintImmediately(new Rectangle(0,0, size.width, size.height)); try { ! Thread.currentThread().sleep(pressTime); } catch(InterruptedException ie) { } model.setPressed(false); model.setArmed(false); } --- 368,378 ---- Dimension size = getSize(); model.setArmed(true); model.setPressed(true); paintImmediately(new Rectangle(0,0, size.width, size.height)); try { ! Thread.sleep(pressTime); } catch(InterruptedException ie) { } model.setPressed(false); model.setArmed(false); }