< prev index next >

src/java.desktop/share/classes/java/awt/peer/TaskbarPeer.java

Print this page

        

@@ -23,16 +23,16 @@
  * questions.
  */
 
 package java.awt.peer;
 
+import java.awt.Frame;
 import java.awt.Image;
 import java.awt.PopupMenu;
 import java.awt.Taskbar;
 import java.awt.Taskbar.Feature;
 import java.awt.Taskbar.State;
-import java.awt.Window;
 
 
 /**
  * The {@code TaskbarPeer} interface provides methods for interacting with
  * system task area.

@@ -51,11 +51,11 @@
     /**
      * Requests user attention to the specified window.
      *
      * @param w window
      */
-    default void requestWindowUserAttention(Window w) {}
+    default void requestWindowUserAttention(Frame w) {}
 
     /**
      * Attaches the contents of the provided PopupMenu to the application icon
      * in system task area.
      *

@@ -97,28 +97,28 @@
      * for the specified window.
      *
      * @param w window to update
      * @param badge image to affix to the icon
      */
-    default void setWindowIconBadge(Window w, final Image badge) {}
+    default void setWindowIconBadge(Frame w, final Image badge) {}
 
     /**
      * Displays progress for specified window.
      *
      * @param w window to update
      * @param value from 0 to 100, other to disable progress indication
      */
-    default void setWindowProgressValue(Window w, int value) {}
+    default void setWindowProgressValue(Frame w, int value) {}
 
     /**
      * Sets a progress state for a specified window.
      *
      * @param w window
      * @param state to change to
      * @see Taskbar#setWindowProgressState
      */
-    default void setWindowProgressState(Window w, State state) {}
+    default void setWindowProgressState(Frame w, State state) {}
 
     /**
      * Affixes a small system-provided progress bar to this application's icon.
      *
      * @param value from 0 to 100, other to disable progress indication
< prev index next >