6637204: TrayIcon.displayMessage fails to show icon twice

The icon canvas should be validated to finalize its layout

Reviewed-by: ant
This commit is contained in:
Dmitry Cherepanov 2008-03-31 15:56:12 +04:00
parent b2b125f8a9
commit cfaf19f278

@ -833,6 +833,7 @@ public class XTrayIconPeer implements TrayIconPeer {
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() {