RFR: 6391806: JLabel and AbstractButton's imageUpdate method should be better specified

Prasanta Sadhukhan psadhukhan at openjdk.org
Tue Jun 28 07:57:48 UTC 2022


On Tue, 28 Jun 2022 07:53:03 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

>> JLabel and AbstractButton's imageUpdate method description updated.
>
> src/java.desktop/share/classes/javax/swing/AbstractButton.java line 2151:
> 
>> 2149:      * Returns true if one of this AbstractButton's icon or disabled icon is derived from
>> 2150:      * ImageIcon and it's Image is equal to the image passed in; false
>> 2151:      * otherwise.
> 
> Guess it should be "Returns true if the button icon for present button state is an instance of ImageIcon and the image it contains is same as the <code>image</code>"

same for JLabel..

-------------

PR: https://git.openjdk.org/jdk/pull/9240



More information about the client-libs-dev mailing list