changeset 208:b0bc376a5360

6637204: TrayIcon.displayMessage fails to show icon twice Summary: the icon canvas should be validated to finalize its layout Reviewed-by: ant
author dcherepanov
date Mon, 31 Mar 2008 15:56:12 +0400
parents ada64880c5d0
children 908cab7b2f1c 9ca7032ada2b
files src/solaris/classes/sun/awt/X11/XTrayIconPeer.java
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/solaris/classes/sun/awt/X11/XTrayIconPeer.java	Mon Mar 31 15:41:56 2008 +0400
+++ b/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() {