< prev index next >

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

Print this page

        

*** 362,372 **** * Passing {@code null} as parameter hides the badge. * @param badge label to affix to the icon * @throws SecurityException if a security manager exists and it denies the * {@code AWTPermission("showWindowWithoutWarningBanner")} permission. * @throws UnsupportedOperationException if the current platform ! * does not support the {@link Taskbar.Feature#ICON_BADGE_NUMBER} feature */ public void setIconBadge(final String badge) { checkAWTPermission(); checkFeatureSupport(Feature.ICON_BADGE_NUMBER); peer.setIconBadge(badge); --- 362,373 ---- * Passing {@code null} as parameter hides the badge. * @param badge label to affix to the icon * @throws SecurityException if a security manager exists and it denies the * {@code AWTPermission("showWindowWithoutWarningBanner")} permission. * @throws UnsupportedOperationException if the current platform ! * does not support the {@link Taskbar.Feature#ICON_BADGE_NUMBER} ! * or {@link Taskbar.Feature#ICON_BADGE_TEXT} feature */ public void setIconBadge(final String badge) { checkAWTPermission(); checkFeatureSupport(Feature.ICON_BADGE_NUMBER); peer.setIconBadge(badge);
< prev index next >