Skip to content

Commit 51a1299

Browse files
author
Alexander Zvegintsev
committed
8264125: Specification of Taskbar::getIconImage doesn't mention that the returned image might not be equal to the Taskbar::setIconImage one. (eg on Mac OS)
Reviewed-by: kizune, prr
1 parent 3b83bc1 commit 51a1299

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public PopupMenu getMenu() {
323323
}
324324

325325
/**
326-
* Changes this application's icon to the provided image.
326+
* Requests the system to change this application's icon to the provided {@code image}.
327327
*
328328
* @param image to change
329329
* @throws SecurityException if a security manager exists and it denies the
@@ -340,6 +340,10 @@ public void setIconImage(final Image image) {
340340
/**
341341
* Obtains an image of this application's icon.
342342
*
343+
* @apiNote The returned icon image may not be equal
344+
* to an image set by {@link java.awt.Taskbar#setIconImage},
345+
* but should be visually similar.
346+
*
343347
* @return an image of this application's icon
344348
* @throws SecurityException if a security manager exists and it denies the
345349
* {@code RuntimePermission("canProcessApplicationEvents")} permission.

0 commit comments

Comments
 (0)