< prev index next >

src/java.desktop/windows/classes/sun/awt/windows/WTaskbarPeer.java

Print this page

        

*** 23,38 **** * questions. */ package sun.awt.windows; import java.awt.AlphaComposite; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Taskbar.Feature; import java.awt.Taskbar.State; import java.awt.peer.TaskbarPeer; - import java.awt.Window; import java.awt.image.BufferedImage; import java.awt.image.DataBufferInt; import sun.awt.AWTAccessor; import sun.awt.OSInfo; import sun.awt.shell.ShellFolder; --- 23,38 ---- * questions. */ package sun.awt.windows; import java.awt.AlphaComposite; + import java.awt.Frame; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Taskbar.Feature; import java.awt.Taskbar.State; import java.awt.peer.TaskbarPeer; import java.awt.image.BufferedImage; import java.awt.image.DataBufferInt; import sun.awt.AWTAccessor; import sun.awt.OSInfo; import sun.awt.shell.ShellFolder;
*** 94,105 **** return ((DataBufferInt) bimg.getRaster().getDataBuffer()).getData(); } @Override ! public void setWindowIconBadge(Window window, final Image image) { ! WWindowPeer wp = AWTAccessor.getComponentAccessor().getPeer(window); if (wp != null) { int[] buffer = imageToArray(image); ShellFolder.invoke(() -> { setOverlayIcon(wp.getHWnd(), buffer, buffer != null ? image.getWidth(null) : 0, --- 94,105 ---- return ((DataBufferInt) bimg.getRaster().getDataBuffer()).getData(); } @Override ! public void setWindowIconBadge(Frame frame, final Image image) { ! WWindowPeer wp = AWTAccessor.getComponentAccessor().getPeer(frame); if (wp != null) { int[] buffer = imageToArray(image); ShellFolder.invoke(() -> { setOverlayIcon(wp.getHWnd(), buffer, buffer != null ? image.getWidth(null) : 0,
*** 108,138 **** }); } } @Override ! public void requestWindowUserAttention(Window window) { ! WWindowPeer wp = AWTAccessor.getComponentAccessor().getPeer(window); if (wp != null) { flashWindow(wp.getHWnd()); } } @Override ! public void setWindowProgressValue(Window window, int value) { ! WWindowPeer wp = AWTAccessor.getComponentAccessor().getPeer(window); if (wp != null) { ShellFolder.invoke(() -> { setProgressValue(wp.getHWnd(), value); return null; }); } } @Override ! public void setWindowProgressState(Window window, State state) { ! WWindowPeer wp = AWTAccessor.getComponentAccessor().getPeer(window); if (wp != null) { ShellFolder.invoke(() -> { setProgressState(wp.getHWnd(), state); return null; }); --- 108,138 ---- }); } } @Override ! public void requestWindowUserAttention(Frame frame) { ! WWindowPeer wp = AWTAccessor.getComponentAccessor().getPeer(frame); if (wp != null) { flashWindow(wp.getHWnd()); } } @Override ! public void setWindowProgressValue(Frame frame, int value) { ! WWindowPeer wp = AWTAccessor.getComponentAccessor().getPeer(frame); if (wp != null) { ShellFolder.invoke(() -> { setProgressValue(wp.getHWnd(), value); return null; }); } } @Override ! public void setWindowProgressState(Frame frame, State state) { ! WWindowPeer wp = AWTAccessor.getComponentAccessor().getPeer(frame); if (wp != null) { ShellFolder.invoke(() -> { setProgressState(wp.getHWnd(), state); return null; });
< prev index next >