From 1448745441130f8247d01833f5606cf77cb774e6 Mon Sep 17 00:00:00 2001 From: Alon Muroch Date: Mon, 18 Aug 2014 18:58:54 +0300 Subject: [PATCH] fixed payoutDialog crash --- .../src/main/java/org/ethereum/gui/PayOutDialog.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ethereumj-core/src/main/java/org/ethereum/gui/PayOutDialog.java b/ethereumj-core/src/main/java/org/ethereum/gui/PayOutDialog.java index c6c5c779..2c44f019 100644 --- a/ethereumj-core/src/main/java/org/ethereum/gui/PayOutDialog.java +++ b/ethereumj-core/src/main/java/org/ethereum/gui/PayOutDialog.java @@ -226,8 +226,13 @@ class PayOutDialog extends JDialog implements MessageAwareDialog { inputMap.put(stroke, "ESCAPE"); rootPane.getActionMap().put("ESCAPE", actionListener); - this.setSize(500, 255); - this.setVisible(true); + SwingUtilities.invokeLater(new Runnable() { + public void run() { + setSize(500, 255); + setVisible(true); + } + }); + return rootPane; }