6637204: TrayIcon.displayMessage fails to show icon twice
authordcherepanov
Mon, 31 Mar 2008 15:56:12 +0400
changeset 431 6aea7c26a8dc
parent 430 ff8a4a3ad82f
child 432 ff3aa6ee3572
child 436 1cc586a58a3e
6637204: TrayIcon.displayMessage fails to show icon twice Summary: the icon canvas should be validated to finalize its layout Reviewed-by: ant
jdk/src/solaris/classes/sun/awt/X11/XTrayIconPeer.java
--- a/jdk/src/solaris/classes/sun/awt/X11/XTrayIconPeer.java	Mon Mar 31 15:41:56 2008 +0400
+++ b/jdk/src/solaris/classes/sun/awt/X11/XTrayIconPeer.java	Mon Mar 31 15:56:12 2008 +0400
@@ -833,6 +833,7 @@
                 Dimension tpSize = textPanel.getSize();
                 iconCanvas.setSize(BALLOON_ICON_WIDTH, (BALLOON_ICON_HEIGHT > tpSize.height ?
                                                         BALLOON_ICON_HEIGHT : tpSize.height));
+                iconCanvas.validate();
             }
 
             SunToolkit.executeOnEventHandlerThread(xtiPeer.target, new Runnable() {