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:
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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user