hide button to close and refresh

This commit is contained in:
MKDrwal 2019-12-13 19:15:01 +01:00
parent 2d79d2a265
commit 0e815cb905
3 changed files with 3 additions and 10 deletions

View File

@ -7,7 +7,7 @@ import javafx.scene.text.Text;
import javafx.scene.text.TextAlignment;
public class FilePaneBuilder {
public Pane getPane(String fileName) {
Pane pane = new Pane();
pane.setPrefWidth(130);

View File

@ -6,12 +6,10 @@ import ftp.sar.server.ServerFactory;
import javafx.event.Event;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.scene.control.ScrollPane;
import javafx.scene.control.TextField;
import javafx.scene.layout.Pane;
import javafx.scene.layout.VBox;
import java.awt.*;
import java.io.IOException;
public class MainPageController {
@ -34,11 +32,6 @@ public class MainPageController {
ServerPanelController serverPanelController = fxmlLoader.getController();
serverPanelController.setData(server);
this.serverContainer.getChildren().add(panel);
// FXMLLoader fxmlLoader = new FXMLLoader();
// Pane panel = fxmlLoader.load(loader.getResource("server_panel.fxml"));
// ServerPanelController serverPanelController = (ServerPanelController) fxmlLoader.getController();
// serverPanelController.printHi();
} catch (IOException ex) {
ex.printStackTrace();
}

View File

@ -12,7 +12,7 @@
<Label layoutX="200.0" layoutY="6.0" text="Port:" />
<Label fx:id="serverPort" layoutX="236.0" layoutY="6.0" text="xxxx" />
<FlowPane fx:id="fileContainer" layoutY="30.0" maxWidth="1.7976931348623157E308" minWidth="-Infinity" prefWidth="780.0" />
<Button fx:id="refreshButton" layoutX="640.0" layoutY="0" mnemonicParsing="false" onAction="#refreshList" text="Refresh" />
<Button fx:id="closeButton" layoutX="720.0" layoutY="0" mnemonicParsing="false" onAction="#closeConnection" text="Close" />
<!-- <Button fx:id="refreshButton" layoutX="640.0" layoutY="0" mnemonicParsing="false" onAction="#refreshList" text="Refresh" />-->
<!-- <Button fx:id="closeButton" layoutX="720.0" layoutY="0" mnemonicParsing="false" onAction="#closeConnection" text="Close" />-->
</children>
</Pane>