jdk/src/share/classes/javax/swing/plaf/synth/SynthButtonUI.java
changeset 25173 4f093fa54fa1
parent 25100 d527cc827d7d
equal deleted inserted replaced
25172:b345c47c02b3 25173:4f093fa54fa1
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2014, 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
   511     }
   511     }
   512 
   512 
   513     /**
   513     /**
   514      * Returns the Icon used in calculating the
   514      * Returns the Icon used in calculating the
   515      * preferred/minimum/maximum size.
   515      * preferred/minimum/maximum size.
       
   516      *
       
   517      * @param b specifies the {@code AbstractButton}
       
   518      * used when calculating the preferred/minimum/maximum
       
   519      * size.
       
   520      *
       
   521      * @return the Icon used in calculating the
       
   522      * preferred/minimum/maximum size.
   516      */
   523      */
   517     protected Icon getSizingIcon(AbstractButton b) {
   524     protected Icon getSizingIcon(AbstractButton b) {
   518         Icon icon = getEnabledIcon(b, b.getIcon());
   525         Icon icon = getEnabledIcon(b, b.getIcon());
   519         if (icon == null) {
   526         if (icon == null) {
   520             icon = getDefaultIcon(b);
   527             icon = getDefaultIcon(b);