mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue