Separated delay timing for tooltip (to give some time for jeditorpane to reload html)

This commit is contained in:
magenoxx 2010-12-21 22:46:09 +03:00
parent e2ae25313e
commit 1a0d10f563

View file

@ -136,7 +136,7 @@ public class MageActionCallback implements ActionCallback {
ThreadUtils.threadPool2.submit(new Runnable() {
@Override
public void run() {
ThreadUtils.sleep(900);
ThreadUtils.sleep(700);
if (!popupCard.equals(data.card)) {
return;
@ -157,6 +157,7 @@ public class MageActionCallback implements ActionCallback {
location = GuiDisplayUtil.keepComponentInsideParent(location, parentPoint, popup2, parentComponent);
location.translate(-parentPoint.x, -parentPoint.y);
popup2.setLocation(location);
ThreadUtils.sleep(200);
popup2.setVisible(true);
} catch (Exception e) {
e.printStackTrace();