diff --git a/release/wpc_v1.2.rar b/release/wpc_v1.2.rar index 352ef9b..bc643b5 100644 Binary files a/release/wpc_v1.2.rar and b/release/wpc_v1.2.rar differ diff --git a/src/com/nm/wpc/editor/option/OpenProjectOption.java b/src/com/nm/wpc/editor/option/OpenProjectOption.java index d77184b..2380965 100644 --- a/src/com/nm/wpc/editor/option/OpenProjectOption.java +++ b/src/com/nm/wpc/editor/option/OpenProjectOption.java @@ -67,7 +67,7 @@ public void make(GUIObject source) { fw.addGUIObject(btn); } - InputField projectLocation = new InputField("Project settings file:", 15, recentProjects.size()*50+10, 200, 100, 1); + InputField projectLocation = (InputField)(new InputField("Project settings file:", 15, recentProjects.size()*50+10, 200, 100, 1).setContainer(fw.getPanel())); Button browse = new Button("Browse", 155, recentProjects.size()*50+20, 50, 30, new SelectFileOption()).setGuiObject(projectLocation); fw.addGUIObject(projectLocation); diff --git a/src/com/nm/wpc/editor/option/SelectFileOption.java b/src/com/nm/wpc/editor/option/SelectFileOption.java index 49b94ea..b45a78c 100644 --- a/src/com/nm/wpc/editor/option/SelectFileOption.java +++ b/src/com/nm/wpc/editor/option/SelectFileOption.java @@ -65,11 +65,10 @@ public void run() { int val = choose.showOpenDialog(ms); if(val == JFileChooser.APPROVE_OPTION) { ((InputField)((Button)source).getGuiObject()).setText(choose.getSelectedFile().getAbsolutePath()); + ((InputField)((Button)source).getGuiObject()).getContainer().repaint(); } - } }); - t.start(); } }