Skip to content

Commit

Permalink
Implement option json
Browse files Browse the repository at this point in the history
  • Loading branch information
hidude562 committed Feb 27, 2023
1 parent 3f62525 commit 84ef451
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions jApps/src/components/Options.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ public ApplyListener(JButton button) {
// Called when Apply button is pressed
public void actionPerformed(ActionEvent e) {
System.out.println("apply clicked");

appConfig.LOOK_AND_FEEL = lookAndFeelInput.getText();
appConfig.INSTALL_DIRECTORY = installLocInput.getText();
appConfig.APP_NAME = appNameInput.getText();

jApps.updateConfigJson();
}
}
Expand Down
16 changes: 8 additions & 8 deletions jApps/src/components/appConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@

public class appConfig {

public static final String INSTALL_DIRECTORY;
public static final String USB_NAME;
public static final String USB_DETECTOR_NAME;
public static final String LOOK_AND_FEEL;
public static final String APP_NAME;
public static final String APPS_CONFIG;
public static final String GENERAL_CONFIG = "generalConfig.json";
public static final String TEMP_ZIP_NAME;
public static String INSTALL_DIRECTORY;
public static String USB_NAME;
public static String USB_DETECTOR_NAME;
public static String LOOK_AND_FEEL;
public static String APP_NAME;
public static String APPS_CONFIG;
public static String GENERAL_CONFIG = "generalConfig.json";
public static String TEMP_ZIP_NAME;

// Static initilizer that loads from a json
static {
Expand Down

0 comments on commit 84ef451

Please sign in to comment.