esoe 2 years ago
parent
commit
14f452bbeb
  1. 6
      src/main/java/ru/molokoin/App.java
  2. 1
      src/main/java/ru/molokoin/MainFrameController.java
  3. 13
      src/main/resources/face/mainframe.fxml
  4. 24
      src/main/resources/face/styles.css
  5. 13
      target/classes/face/mainframe.fxml
  6. 24
      target/classes/face/styles.css
  7. BIN
      target/classes/ru/molokoin/App.class
  8. BIN
      target/classes/ru/molokoin/MainFrameController.class

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

@ -20,14 +20,14 @@ public class App extends Application { @@ -20,14 +20,14 @@ 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) {

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

@ -7,6 +7,7 @@ import javafx.event.Event; @@ -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{

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

@ -1,10 +1,17 @@ @@ -1,10 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.TextField?>
<VBox prefHeight="200.0" prefWidth="300.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ru.molokoin.MainFrameController">
<Label text="exchange-server"/>
<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>
<VBox prefHeight="200.0" prefWidth="300.0" >
<Label text="setup the port: "/>
<TextField fx:id="portField" promptText="8081" />
<Button fx:id="btn" text="START" onAction="#buttonClicked"/>
</VBox>
</VBox>
</children>
</Pane>

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

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

13
target/classes/face/mainframe.fxml

@ -1,10 +1,17 @@ @@ -1,10 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.TextField?>
<VBox prefHeight="200.0" prefWidth="300.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="ru.molokoin.MainFrameController">
<Label text="exchange-server"/>
<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>
<VBox prefHeight="200.0" prefWidth="300.0" >
<Label text="setup the port: "/>
<TextField fx:id="portField" promptText="8081" />
<Button fx:id="btn" text="START" onAction="#buttonClicked"/>
</VBox>
</VBox>
</children>
</Pane>

24
target/classes/face/styles.css

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

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

Binary file not shown.

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

Binary file not shown.
Loading…
Cancel
Save