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 @@ @@ -1,5 +1,5 @@
module ru.molokoin {
requires javafx.controls;
requires javafx.fxml;
requires transitive javafx.controls;
requires transitive javafx.fxml;
exports ru.molokoin;
}

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

@ -1,7 +1,5 @@ @@ -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 { @@ -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);

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

@ -8,11 +8,12 @@ import javafx.fxml.FXML; @@ -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

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

@ -5,6 +5,7 @@ @@ -5,6 +5,7 @@
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.control.Button?>
<?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">
<children>

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

@ -1,24 +1,23 @@ @@ -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 {
}

1
target/classes/face/mainframe.fxml

@ -5,6 +5,7 @@ @@ -5,6 +5,7 @@
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.control.Button?>
<?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">
<children>

37
target/classes/face/styles.css

@ -1,24 +1,23 @@ @@ -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 {
}

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