diff --git a/ftp-sar.iml b/ftp-sar.iml new file mode 100644 index 0000000..656d0dd --- /dev/null +++ b/ftp-sar.iml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/java/ftp/sar/Main.java b/src/main/java/ftp/sar/Main.java index eb11d67..4f52664 100644 --- a/src/main/java/ftp/sar/Main.java +++ b/src/main/java/ftp/sar/Main.java @@ -15,7 +15,7 @@ public class Main extends Application { Parent root = FXMLLoader.load(loader.getResource("main_page.fxml")); primaryStage.setTitle("FTP SAR"); primaryStage.setScene(new Scene(root)); - primaryStage.setResizable(false); +// primaryStage.setResizable(false); primaryStage.show(); } diff --git a/src/main/java/ftp/sar/controller/ServerPanelController.java b/src/main/java/ftp/sar/controller/ServerPanelController.java index 2a04d4d..1f2776c 100644 --- a/src/main/java/ftp/sar/controller/ServerPanelController.java +++ b/src/main/java/ftp/sar/controller/ServerPanelController.java @@ -2,8 +2,10 @@ package ftp.sar.controller; import ftp.sar.builder.FilePaneBuilder; import ftp.sar.server.Server; +import javafx.event.Event; import javafx.fxml.FXML; import javafx.fxml.Initializable; +import javafx.scene.control.Button; import javafx.scene.control.Label; import javafx.scene.layout.FlowPane; @@ -20,7 +22,18 @@ public class ServerPanelController implements Initializable { Label serverIp; @FXML FlowPane fileContainer; - + @FXML + Button refreshButton; + + @FXML + public void refreshList(Event e) { + System.out.println("refresh"); + } + + @FXML + public void closeConnection(Event e) { + System.out.println("Close"); + } public void setData(Server server) { this.server = server; diff --git a/src/main/resources/server_panel.fxml b/src/main/resources/server_panel.fxml index ba386b5..5a30067 100644 --- a/src/main/resources/server_panel.fxml +++ b/src/main/resources/server_panel.fxml @@ -1,5 +1,6 @@ + @@ -11,5 +12,7 @@