diff --git a/src/main/java/ru/molokoin/App.java b/src/main/java/ru/molokoin/App.java
index d89a224..05ae830 100644
--- a/src/main/java/ru/molokoin/App.java
+++ b/src/main/java/ru/molokoin/App.java
@@ -20,18 +20,18 @@ public class App extends Application {
try {
String link = "/face/mainframe.fxml";
Parent root = FXMLLoader.load(getClass().getResource(link));
+ //root.getStylesheets().add(getClass().getResource("/face/styles.css").toExternalForm());
+ Scene scene = new Scene(root);
stage.setTitle("exchange-server-settings");
- stage.setScene(new Scene(root));
+ stage.setScene(scene);
stage.show();
} catch (Exception e) {
System.out.println("Не удалось запустить сцену. Ошибка: " + e);
}
-
-
}
public static void main(String[] args) {
launch();
}
-}
\ No newline at end of file
+}
diff --git a/src/main/java/ru/molokoin/MainFrameController.java b/src/main/java/ru/molokoin/MainFrameController.java
index da2adca..772e5c5 100644
--- a/src/main/java/ru/molokoin/MainFrameController.java
+++ b/src/main/java/ru/molokoin/MainFrameController.java
@@ -7,6 +7,7 @@ import javafx.event.Event;
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{
@@ -20,7 +21,7 @@ public class MainFrameController implements Initializable{
System.out.println("Инициализация компонентов интерфейса ...");
server = new ExchangeServer();
}
-
+
@FXML
public void buttonClicked(Event e){
System.out.println("Button clicked");
@@ -32,6 +33,6 @@ public class MainFrameController implements Initializable{
btn.setText("START");
server.stop();
}
-
+
}
}
diff --git a/src/main/resources/face/mainframe.fxml b/src/main/resources/face/mainframe.fxml
index 3ac0079..e3dfbd7 100644
--- a/src/main/resources/face/mainframe.fxml
+++ b/src/main/resources/face/mainframe.fxml
@@ -1,10 +1,17 @@
+
+
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
diff --git a/src/main/resources/face/styles.css b/src/main/resources/face/styles.css
new file mode 100644
index 0000000..238cf75
--- /dev/null
+++ b/src/main/resources/face/styles.css
@@ -0,0 +1,24 @@
+.Pane {
+ background-color:black;
+ -fx-background-color:black
+}
+.VBox {
+ background-color:black;
+ -fx-background-color:black
+}
+.children {
+ background-color:black;
+ -fx-background-color:black
+}
+.Button {
+ background-color:black;
+ -fx-background-color:black
+}
+.TextField {
+ background-color:black;
+ -fx-background-color:black
+}
+.Label {
+ background-color:black;
+ -fx-background-color:black
+}
diff --git a/target/classes/face/mainframe.fxml b/target/classes/face/mainframe.fxml
index 3ac0079..e3dfbd7 100644
--- a/target/classes/face/mainframe.fxml
+++ b/target/classes/face/mainframe.fxml
@@ -1,10 +1,17 @@
+
+
-
-
-
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
diff --git a/target/classes/face/styles.css b/target/classes/face/styles.css
new file mode 100644
index 0000000..238cf75
--- /dev/null
+++ b/target/classes/face/styles.css
@@ -0,0 +1,24 @@
+.Pane {
+ background-color:black;
+ -fx-background-color:black
+}
+.VBox {
+ background-color:black;
+ -fx-background-color:black
+}
+.children {
+ background-color:black;
+ -fx-background-color:black
+}
+.Button {
+ background-color:black;
+ -fx-background-color:black
+}
+.TextField {
+ background-color:black;
+ -fx-background-color:black
+}
+.Label {
+ background-color:black;
+ -fx-background-color:black
+}
diff --git a/target/classes/ru/molokoin/App.class b/target/classes/ru/molokoin/App.class
index 7cc3088..0a15626 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 de5e021..824bd03 100644
Binary files a/target/classes/ru/molokoin/MainFrameController.class and b/target/classes/ru/molokoin/MainFrameController.class differ