提交 a80da22c 编写于 作者: D dcherepanov

6637204: TrayIcon.displayMessage fails to show icon twice

Summary: the icon canvas should be validated to finalize its layout
Reviewed-by: ant
上级 e01d0a82
......@@ -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() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册