fixed payoutDialog crash

This commit is contained in:
Alon Muroch 2014-08-18 18:58:54 +03:00
parent 46c9c03f95
commit 1448745441
1 changed files with 7 additions and 2 deletions

View File

@ -226,8 +226,13 @@ class PayOutDialog extends JDialog implements MessageAwareDialog {
inputMap.put(stroke, "ESCAPE"); inputMap.put(stroke, "ESCAPE");
rootPane.getActionMap().put("ESCAPE", actionListener); rootPane.getActionMap().put("ESCAPE", actionListener);
this.setSize(500, 255); SwingUtilities.invokeLater(new Runnable() {
this.setVisible(true); public void run() {
setSize(500, 255);
setVisible(true);
}
});
return rootPane; return rootPane;
} }