diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java
index 67791b1..2f81eec 100644
--- a/src/main/java/module-info.java
+++ b/src/main/java/module-info.java
@@ -1,5 +1,5 @@
module ru.molokoin {
- requires javafx.controls;
- requires javafx.fxml;
+ requires transitive javafx.controls;
+ requires transitive javafx.fxml;
exports ru.molokoin;
}
diff --git a/src/main/java/ru/molokoin/App.java b/src/main/java/ru/molokoin/App.java
index 05ae830..a061a18 100644
--- a/src/main/java/ru/molokoin/App.java
+++ b/src/main/java/ru/molokoin/App.java
@@ -1,7 +1,5 @@
package ru.molokoin;
-import java.net.URL;
-
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
//import javafx.fxml.*;
@@ -18,12 +16,14 @@ public class App extends Application {
@Override
public void start(Stage stage){
try {
- String link = "/face/mainframe.fxml";
- Parent root = FXMLLoader.load(getClass().getResource(link));
- //root.getStylesheets().add(getClass().getResource("/face/styles.css").toExternalForm());
+ String linkFXML = "/face/mainframe.fxml";
+ String linkCSS = "/face/styles.css";
+
+ Parent root = FXMLLoader.load(getClass().getResource(linkFXML));
Scene scene = new Scene(root);
stage.setTitle("exchange-server-settings");
stage.setScene(scene);
+ scene.getStylesheets().add(getClass().getResource(linkCSS).toExternalForm());
stage.show();
} catch (Exception e) {
System.out.println("Не удалось запустить сцену. Ошибка: " + e);
diff --git a/src/main/java/ru/molokoin/MainFrameController.java b/src/main/java/ru/molokoin/MainFrameController.java
index 772e5c5..f10b37d 100644
--- a/src/main/java/ru/molokoin/MainFrameController.java
+++ b/src/main/java/ru/molokoin/MainFrameController.java
@@ -8,11 +8,12 @@ import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Button;
import javafx.scene.control.TextField;
-import javafx.scene.input.MouseEvent;
public class MainFrameController implements Initializable{
@FXML
public Button btn;
+ @FXML
+ public TextField portField;
public ExchangeServer server;
@Override
diff --git a/src/main/resources/face/mainframe.fxml b/src/main/resources/face/mainframe.fxml
index e3dfbd7..df04c83 100644
--- a/src/main/resources/face/mainframe.fxml
+++ b/src/main/resources/face/mainframe.fxml
@@ -5,13 +5,14 @@
+
-
+
-
+
diff --git a/src/main/resources/face/styles.css b/src/main/resources/face/styles.css
index 238cf75..fa8ac37 100644
--- a/src/main/resources/face/styles.css
+++ b/src/main/resources/face/styles.css
@@ -1,24 +1,23 @@
-.Pane {
- background-color:black;
- -fx-background-color:black
+Pane {
+ background-color: white;
+ -fx-background-color: white;
}
-.VBox {
- background-color:black;
- -fx-background-color:black
+VBox {
+ background-color: whitesmoke;
+ -fx-background-color: whitesmoke;
}
-.children {
- background-color:black;
- -fx-background-color:black
+
+TextField {
+
}
-.Button {
- background-color:black;
- -fx-background-color:black
+
+Label {
+ font-size: 36px;
+ -fx-font-size: 36px;
+
}
-.TextField {
- background-color:black;
- -fx-background-color:black
-}
-.Label {
- background-color:black;
- -fx-background-color:black
+
+Button {
+
}
+
diff --git a/target/classes/face/mainframe.fxml b/target/classes/face/mainframe.fxml
index e3dfbd7..df04c83 100644
--- a/target/classes/face/mainframe.fxml
+++ b/target/classes/face/mainframe.fxml
@@ -5,13 +5,14 @@
+
-
+
-
+
diff --git a/target/classes/face/styles.css b/target/classes/face/styles.css
index 238cf75..fa8ac37 100644
--- a/target/classes/face/styles.css
+++ b/target/classes/face/styles.css
@@ -1,24 +1,23 @@
-.Pane {
- background-color:black;
- -fx-background-color:black
+Pane {
+ background-color: white;
+ -fx-background-color: white;
}
-.VBox {
- background-color:black;
- -fx-background-color:black
+VBox {
+ background-color: whitesmoke;
+ -fx-background-color: whitesmoke;
}
-.children {
- background-color:black;
- -fx-background-color:black
+
+TextField {
+
}
-.Button {
- background-color:black;
- -fx-background-color:black
+
+Label {
+ font-size: 36px;
+ -fx-font-size: 36px;
+
}
-.TextField {
- background-color:black;
- -fx-background-color:black
-}
-.Label {
- background-color:black;
- -fx-background-color:black
+
+Button {
+
}
+
diff --git a/target/classes/module-info.class b/target/classes/module-info.class
index c29a429..be88f2e 100644
Binary files a/target/classes/module-info.class and b/target/classes/module-info.class differ
diff --git a/target/classes/ru/molokoin/App.class b/target/classes/ru/molokoin/App.class
index 0a15626..2ab806e 100644
Binary files a/target/classes/ru/molokoin/App.class and b/target/classes/ru/molokoin/App.class differ
diff --git a/target/classes/ru/molokoin/MainFrameController.class b/target/classes/ru/molokoin/MainFrameController.class
index 824bd03..7cf00c0 100644
Binary files a/target/classes/ru/molokoin/MainFrameController.class and b/target/classes/ru/molokoin/MainFrameController.class differ
diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
deleted file mode 100644
index e69de29..0000000
diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
deleted file mode 100644
index 4b4fa0b..0000000
--- a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
+++ /dev/null
@@ -1,5 +0,0 @@
-c:\Users\Strannik\Documents\esoe\code\exchange-server\src\main\java\ru\molokoin\SystemInfo.java
-c:\Users\Strannik\Documents\esoe\code\exchange-server\src\main\java\module-info.java
-c:\Users\Strannik\Documents\esoe\code\exchange-server\src\main\java\ru\molokoin\ExchangeServer.java
-c:\Users\Strannik\Documents\esoe\code\exchange-server\src\main\java\ru\molokoin\App.java
-c:\Users\Strannik\Documents\esoe\code\exchange-server\src\main\java\ru\molokoin\UploadServer.java
diff --git a/target/test-classes/ru/molokoin/AppTest.class b/target/test-classes/ru/molokoin/AppTest.class
deleted file mode 100644
index c843752..0000000
Binary files a/target/test-classes/ru/molokoin/AppTest.class and /dev/null differ