Skip to content

Commit

Permalink
Bugs fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikola-Mircic committed Nov 20, 2020
1 parent 0d3c1eb commit ab8adad
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Binary file modified release/wpc_v1.2.rar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/com/nm/wpc/editor/option/OpenProjectOption.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 1 addition & 2 deletions src/com/nm/wpc/editor/option/SelectFileOption.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

0 comments on commit ab8adad

Please sign in to comment.