mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 20:14:43 +02:00
Merge
This commit is contained in:
commit
bbab8a6fb4
1 changed files with 10 additions and 9 deletions
|
@ -189,21 +189,22 @@ public abstract class InfoWindow extends Window {
|
||||||
* WARNING: this method is executed on Toolkit thread!
|
* WARNING: this method is executed on Toolkit thread!
|
||||||
*/
|
*/
|
||||||
private void display() {
|
private void display() {
|
||||||
String tooltipString = liveArguments.getTooltipString();
|
|
||||||
if (tooltipString == null) {
|
|
||||||
return;
|
|
||||||
} else if (tooltipString.length() > TOOLTIP_MAX_LENGTH) {
|
|
||||||
textLabel.setText(tooltipString.substring(0, TOOLTIP_MAX_LENGTH));
|
|
||||||
} else {
|
|
||||||
textLabel.setText(tooltipString);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Execute on EDT to avoid deadlock (see 6280857).
|
// Execute on EDT to avoid deadlock (see 6280857).
|
||||||
SunToolkit.executeOnEventHandlerThread(target, new Runnable() {
|
SunToolkit.executeOnEventHandlerThread(target, new Runnable() {
|
||||||
public void run() {
|
public void run() {
|
||||||
if (liveArguments.isDisposed()) {
|
if (liveArguments.isDisposed()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String tooltipString = liveArguments.getTooltipString();
|
||||||
|
if (tooltipString == null) {
|
||||||
|
return;
|
||||||
|
} else if (tooltipString.length() > TOOLTIP_MAX_LENGTH) {
|
||||||
|
textLabel.setText(tooltipString.substring(0, TOOLTIP_MAX_LENGTH));
|
||||||
|
} else {
|
||||||
|
textLabel.setText(tooltipString);
|
||||||
|
}
|
||||||
|
|
||||||
Point pointer = (Point)AccessController.doPrivileged(new PrivilegedAction() {
|
Point pointer = (Point)AccessController.doPrivileged(new PrivilegedAction() {
|
||||||
public Object run() {
|
public Object run() {
|
||||||
if (!isPointerOverTrayIcon(liveArguments.getBounds())) {
|
if (!isPointerOverTrayIcon(liveArguments.getBounds())) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue