diff --git a/pom.xml b/pom.xml index b66d4b3..d3cfcad 100644 --- a/pom.xml +++ b/pom.xml @@ -88,8 +88,7 @@ default-cli - com.example.narumideobfgui/com.example.narumideobfgui.HelloApplication - + NarumiDeobfGUI/gq.malwarefight.narumiideobfgui.DeobfuscatorGUIApp app app app diff --git a/src/main/java/gq/malwarefight/narumiideobfgui/DeobfuscatorGUIController.java b/src/main/java/gq/malwarefight/narumiideobfgui/DeobfuscatorGUIController.java index 37a1b24..cf74a29 100644 --- a/src/main/java/gq/malwarefight/narumiideobfgui/DeobfuscatorGUIController.java +++ b/src/main/java/gq/malwarefight/narumiideobfgui/DeobfuscatorGUIController.java @@ -4,6 +4,7 @@ import javafx.fxml.FXML; import javafx.scene.control.CheckBox; import javafx.scene.control.Label; +import javafx.scene.control.ScrollPane; import javafx.scene.control.TextField; import javafx.scene.layout.VBox; import javafx.stage.FileChooser; @@ -32,6 +33,8 @@ public class DeobfuscatorGUIController { @FXML public Label result; @FXML + public ScrollPane scrollPane; + @FXML protected void chooseInputFile() { FileChooser fileChooser = new FileChooser(); fileChooser.setInitialDirectory(new File(System.getProperty("user.dir"))); @@ -76,6 +79,7 @@ public void initialize() { buttonContainer.getChildren().add(box); deobfuscatorHashMap.put(box, transformer); } + DeobfuscatorGUIApp.stage.widthProperty().addListener((obs, oldVal, newVal) -> buttonContainer.setMinWidth(newVal.doubleValue())); } } diff --git a/src/main/resources/gq/malwarefight/narumiideobfgui/deobfuscator-gui-advanced-view.fxml b/src/main/resources/gq/malwarefight/narumiideobfgui/deobfuscator-gui-advanced-view.fxml index f57dc7b..d5f0488 100644 --- a/src/main/resources/gq/malwarefight/narumiideobfgui/deobfuscator-gui-advanced-view.fxml +++ b/src/main/resources/gq/malwarefight/narumiideobfgui/deobfuscator-gui-advanced-view.fxml @@ -19,9 +19,9 @@