esoe 2 years ago
parent
commit
a027bd591e
  1. 4
      src/main/java/module-info.java
  2. 10
      src/main/java/ru/molokoin/App.java
  3. 3
      src/main/java/ru/molokoin/MainFrameController.java
  4. 1
      src/main/resources/face/mainframe.fxml
  5. 37
      src/main/resources/face/styles.css
  6. 1
      target/classes/face/mainframe.fxml
  7. 37
      target/classes/face/styles.css
  8. BIN
      target/classes/module-info.class
  9. BIN
      target/classes/ru/molokoin/App.class
  10. BIN
      target/classes/ru/molokoin/MainFrameController.class
  11. 0
      target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
  12. 5
      target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
  13. BIN
      target/test-classes/ru/molokoin/AppTest.class

4
src/main/java/module-info.java

@ -1,5 +1,5 @@
module ru.molokoin { module ru.molokoin {
requires javafx.controls; requires transitive javafx.controls;
requires javafx.fxml; requires transitive javafx.fxml;
exports ru.molokoin; exports ru.molokoin;
} }

10
src/main/java/ru/molokoin/App.java

@ -1,7 +1,5 @@
package ru.molokoin; package ru.molokoin;
import java.net.URL;
import javafx.application.Application; import javafx.application.Application;
import javafx.fxml.FXMLLoader; import javafx.fxml.FXMLLoader;
//import javafx.fxml.*; //import javafx.fxml.*;
@ -18,12 +16,14 @@ public class App extends Application {
@Override @Override
public void start(Stage stage){ public void start(Stage stage){
try { try {
String link = "/face/mainframe.fxml"; String linkFXML = "/face/mainframe.fxml";
Parent root = FXMLLoader.load(getClass().getResource(link)); String linkCSS = "/face/styles.css";
//root.getStylesheets().add(getClass().getResource("/face/styles.css").toExternalForm());
Parent root = FXMLLoader.load(getClass().getResource(linkFXML));
Scene scene = new Scene(root); Scene scene = new Scene(root);
stage.setTitle("exchange-server-settings"); stage.setTitle("exchange-server-settings");
stage.setScene(scene); stage.setScene(scene);
scene.getStylesheets().add(getClass().getResource(linkCSS).toExternalForm());
stage.show(); stage.show();
} catch (Exception e) { } catch (Exception e) {
System.out.println("Не удалось запустить сцену. Ошибка: " + e); System.out.println("Не удалось запустить сцену. Ошибка: " + e);

3
src/main/java/ru/molokoin/MainFrameController.java

@ -8,11 +8,12 @@ import javafx.fxml.FXML;
import javafx.fxml.Initializable; import javafx.fxml.Initializable;
import javafx.scene.control.Button; import javafx.scene.control.Button;
import javafx.scene.control.TextField; import javafx.scene.control.TextField;
import javafx.scene.input.MouseEvent;
public class MainFrameController implements Initializable{ public class MainFrameController implements Initializable{
@FXML @FXML
public Button btn; public Button btn;
@FXML
public TextField portField;
public ExchangeServer server; public ExchangeServer server;
@Override @Override

1
src/main/resources/face/mainframe.fxml

@ -5,6 +5,7 @@
<?import javafx.scene.layout.VBox?> <?import javafx.scene.layout.VBox?>
<?import javafx.scene.control.Button?> <?import javafx.scene.control.Button?>
<?import javafx.scene.control.TextField?> <?import javafx.scene.control.TextField?>
<?import java.net.URL?>
<Pane prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ru.molokoin.MainFrameController"> <Pane prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ru.molokoin.MainFrameController">
<children> <children>

37
src/main/resources/face/styles.css

@ -1,24 +1,23 @@
.Pane { Pane {
background-color:black; background-color: white;
-fx-background-color:black -fx-background-color: white;
} }
.VBox { VBox {
background-color:black; background-color: whitesmoke;
-fx-background-color:black -fx-background-color: whitesmoke;
} }
.children {
background-color:black; TextField {
-fx-background-color:black
} }
.Button {
background-color:black; Label {
-fx-background-color:black font-size: 36px;
-fx-font-size: 36px;
} }
.TextField {
background-color:black; Button {
-fx-background-color:black
}
.Label {
background-color:black;
-fx-background-color:black
} }

1
target/classes/face/mainframe.fxml

@ -5,6 +5,7 @@
<?import javafx.scene.layout.VBox?> <?import javafx.scene.layout.VBox?>
<?import javafx.scene.control.Button?> <?import javafx.scene.control.Button?>
<?import javafx.scene.control.TextField?> <?import javafx.scene.control.TextField?>
<?import java.net.URL?>
<Pane prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ru.molokoin.MainFrameController"> <Pane prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ru.molokoin.MainFrameController">
<children> <children>

37
target/classes/face/styles.css

@ -1,24 +1,23 @@
.Pane { Pane {
background-color:black; background-color: white;
-fx-background-color:black -fx-background-color: white;
} }
.VBox { VBox {
background-color:black; background-color: whitesmoke;
-fx-background-color:black -fx-background-color: whitesmoke;
} }
.children {
background-color:black; TextField {
-fx-background-color:black
} }
.Button {
background-color:black; Label {
-fx-background-color:black font-size: 36px;
-fx-font-size: 36px;
} }
.TextField {
background-color:black; Button {
-fx-background-color:black
}
.Label {
background-color:black;
-fx-background-color:black
} }

BIN
target/classes/module-info.class

Binary file not shown.

BIN
target/classes/ru/molokoin/App.class

Binary file not shown.

BIN
target/classes/ru/molokoin/MainFrameController.class

Binary file not shown.

0
target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst

5
target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst

@ -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

BIN
target/test-classes/ru/molokoin/AppTest.class

Binary file not shown.
Loading…
Cancel
Save