Initial commit
This commit is contained in:
21
src/main/java/ru/cft/task/restClient/Main.java
Normal file
21
src/main/java/ru/cft/task/restClient/Main.java
Normal file
@ -0,0 +1,21 @@
|
||||
package ru.cft.task.restClient;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Parent;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
public class Main extends Application {
|
||||
public static void main(String[] args) {
|
||||
launch(args);
|
||||
}
|
||||
|
||||
public void start(Stage stage) throws Exception {
|
||||
Parent root = FXMLLoader.load(getClass().getResource("/main_app.fxml"));
|
||||
Scene scene = new Scene(root);
|
||||
stage.setTitle("Rest Client");
|
||||
stage.setScene(scene);
|
||||
stage.show();
|
||||
}
|
||||
}
|
12
src/main/resources/main_app.fxml
Normal file
12
src/main/resources/main_app.fxml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import java.lang.*?>
|
||||
<?import java.util.*?>
|
||||
<?import javafx.scene.*?>
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
|
||||
<AnchorPane xmlns="http://javafx.com/javafx"
|
||||
xmlns:fx="http://javafx.com/fxml"
|
||||
fx:controller="ru.cft.task.restClient.Main"
|
||||
prefHeight="400.0" prefWidth="600.0"/>
|
Reference in New Issue
Block a user