Prepare project window
This commit is contained in:
parent
386a9fa7c5
commit
cf972e82c3
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
||||
.idea
|
||||
out
|
||||
|
BIN
.gitignore.swp
Normal file
BIN
.gitignore.swp
Normal file
Binary file not shown.
@ -4,9 +4,10 @@
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/src/resource" type="java-resource" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="library" name="libs" level="project" />
|
||||
</component>
|
||||
</module>
|
||||
|
||||
</module>
|
BIN
libs/javafx-swt.jar
Normal file
BIN
libs/javafx-swt.jar
Normal file
Binary file not shown.
BIN
libs/javafx.base.jar
Normal file
BIN
libs/javafx.base.jar
Normal file
Binary file not shown.
BIN
libs/javafx.controls.jar
Normal file
BIN
libs/javafx.controls.jar
Normal file
Binary file not shown.
BIN
libs/javafx.fxml.jar
Normal file
BIN
libs/javafx.fxml.jar
Normal file
Binary file not shown.
BIN
libs/javafx.graphics.jar
Normal file
BIN
libs/javafx.graphics.jar
Normal file
Binary file not shown.
BIN
libs/javafx.media.jar
Normal file
BIN
libs/javafx.media.jar
Normal file
Binary file not shown.
3
libs/javafx.properties
Normal file
3
libs/javafx.properties
Normal file
@ -0,0 +1,3 @@
|
||||
javafx.version=11.0.2
|
||||
javafx.runtime.version=11.0.2+1
|
||||
javafx.runtime.build=1
|
BIN
libs/javafx.swing.jar
Normal file
BIN
libs/javafx.swing.jar
Normal file
Binary file not shown.
BIN
libs/javafx.web.jar
Normal file
BIN
libs/javafx.web.jar
Normal file
Binary file not shown.
BIN
libs/libavplugin-54.so
Executable file
BIN
libs/libavplugin-54.so
Executable file
Binary file not shown.
BIN
libs/libavplugin-56.so
Executable file
BIN
libs/libavplugin-56.so
Executable file
Binary file not shown.
BIN
libs/libavplugin-57.so
Executable file
BIN
libs/libavplugin-57.so
Executable file
Binary file not shown.
BIN
libs/libavplugin-ffmpeg-56.so
Executable file
BIN
libs/libavplugin-ffmpeg-56.so
Executable file
Binary file not shown.
BIN
libs/libavplugin-ffmpeg-57.so
Executable file
BIN
libs/libavplugin-ffmpeg-57.so
Executable file
Binary file not shown.
BIN
libs/libdecora_sse.so
Executable file
BIN
libs/libdecora_sse.so
Executable file
Binary file not shown.
BIN
libs/libfxplugins.so
Executable file
BIN
libs/libfxplugins.so
Executable file
Binary file not shown.
BIN
libs/libglass.so
Executable file
BIN
libs/libglass.so
Executable file
Binary file not shown.
BIN
libs/libglassgtk2.so
Executable file
BIN
libs/libglassgtk2.so
Executable file
Binary file not shown.
BIN
libs/libglassgtk3.so
Executable file
BIN
libs/libglassgtk3.so
Executable file
Binary file not shown.
BIN
libs/libgstreamer-lite.so
Executable file
BIN
libs/libgstreamer-lite.so
Executable file
Binary file not shown.
BIN
libs/libjavafx_font.so
Executable file
BIN
libs/libjavafx_font.so
Executable file
Binary file not shown.
BIN
libs/libjavafx_font_freetype.so
Executable file
BIN
libs/libjavafx_font_freetype.so
Executable file
Binary file not shown.
BIN
libs/libjavafx_font_pango.so
Executable file
BIN
libs/libjavafx_font_pango.so
Executable file
Binary file not shown.
BIN
libs/libjavafx_iio.so
Executable file
BIN
libs/libjavafx_iio.so
Executable file
Binary file not shown.
BIN
libs/libjfxmedia.so
Executable file
BIN
libs/libjfxmedia.so
Executable file
Binary file not shown.
BIN
libs/libjfxwebkit.so
Executable file
BIN
libs/libjfxwebkit.so
Executable file
Binary file not shown.
BIN
libs/libprism_common.so
Executable file
BIN
libs/libprism_common.so
Executable file
Binary file not shown.
BIN
libs/libprism_es2.so
Executable file
BIN
libs/libprism_es2.so
Executable file
Binary file not shown.
BIN
libs/libprism_sw.so
Executable file
BIN
libs/libprism_sw.so
Executable file
Binary file not shown.
BIN
libs/src.zip
Normal file
BIN
libs/src.zip
Normal file
Binary file not shown.
1
readme.md
Normal file
1
readme.md
Normal file
@ -0,0 +1 @@
|
||||
--module-path PATH_TO_PROJECT/libs --add-modules javafx.controls,javafx.fxml
|
@ -1,4 +1,4 @@
|
||||
package sample;
|
||||
package application;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
@ -6,13 +6,16 @@ import javafx.scene.Parent;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
import java.net.URL;
|
||||
|
||||
public class Main extends Application {
|
||||
|
||||
@Override
|
||||
public void start(Stage primaryStage) throws Exception{
|
||||
Parent root = FXMLLoader.load(getClass().getResource("sample.fxml"));
|
||||
primaryStage.setTitle("Hello World");
|
||||
primaryStage.setScene(new Scene(root, 300, 275));
|
||||
URL mainPage = ClassLoader.getSystemClassLoader().getResource("resource/mainPage.fxml");
|
||||
Parent root = FXMLLoader.load(mainPage);
|
||||
primaryStage.setTitle("FTP SAR");
|
||||
primaryStage.setScene(new Scene(root));
|
||||
primaryStage.show();
|
||||
}
|
||||
|
7
src/application/MainPageController.java
Normal file
7
src/application/MainPageController.java
Normal file
@ -0,0 +1,7 @@
|
||||
package application;
|
||||
|
||||
public class MainPageController {
|
||||
public MainPageController() {
|
||||
System.out.println("Controller work!");
|
||||
}
|
||||
}
|
63
src/resource/mainPage.fxml
Normal file
63
src/resource/mainPage.fxml
Normal file
@ -0,0 +1,63 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.Menu?>
|
||||
<?import javafx.scene.control.MenuBar?>
|
||||
<?import javafx.scene.control.MenuItem?>
|
||||
<?import javafx.scene.control.SeparatorMenuItem?>
|
||||
<?import javafx.scene.layout.AnchorPane?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import javafx.scene.text.Font?>
|
||||
|
||||
<VBox prefHeight="400.0" prefWidth="640.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="application.MainPageController">
|
||||
<children>
|
||||
<MenuBar VBox.vgrow="NEVER">
|
||||
<menus>
|
||||
<Menu mnemonicParsing="false" text="File">
|
||||
<items>
|
||||
<MenuItem mnemonicParsing="false" text="New" />
|
||||
<MenuItem mnemonicParsing="false" text="Open…" />
|
||||
<Menu mnemonicParsing="false" text="Open Recent" />
|
||||
<SeparatorMenuItem mnemonicParsing="false" />
|
||||
<MenuItem mnemonicParsing="false" text="Close" />
|
||||
<MenuItem mnemonicParsing="false" text="Save" />
|
||||
<MenuItem mnemonicParsing="false" text="Save As…" />
|
||||
<MenuItem mnemonicParsing="false" text="Revert" />
|
||||
<SeparatorMenuItem mnemonicParsing="false" />
|
||||
<MenuItem mnemonicParsing="false" text="Preferences…" />
|
||||
<SeparatorMenuItem mnemonicParsing="false" />
|
||||
<MenuItem mnemonicParsing="false" text="Quit" />
|
||||
</items>
|
||||
</Menu>
|
||||
<Menu mnemonicParsing="false" text="Edit">
|
||||
<items>
|
||||
<MenuItem mnemonicParsing="false" text="Undo" />
|
||||
<MenuItem mnemonicParsing="false" text="Redo" />
|
||||
<SeparatorMenuItem mnemonicParsing="false" />
|
||||
<MenuItem mnemonicParsing="false" text="Cut" />
|
||||
<MenuItem mnemonicParsing="false" text="Copy" />
|
||||
<MenuItem mnemonicParsing="false" text="Paste" />
|
||||
<MenuItem mnemonicParsing="false" text="Delete" />
|
||||
<SeparatorMenuItem mnemonicParsing="false" />
|
||||
<MenuItem mnemonicParsing="false" text="Select All" />
|
||||
<MenuItem mnemonicParsing="false" text="Unselect All" />
|
||||
</items>
|
||||
</Menu>
|
||||
<Menu mnemonicParsing="false" text="Help">
|
||||
<items>
|
||||
<MenuItem mnemonicParsing="false" text="About MyHelloApp" />
|
||||
</items>
|
||||
</Menu>
|
||||
</menus>
|
||||
</MenuBar>
|
||||
<AnchorPane maxHeight="-1.0" maxWidth="-1.0" prefHeight="-1.0" prefWidth="-1.0" VBox.vgrow="ALWAYS">
|
||||
<children>
|
||||
<Label alignment="CENTER" layoutX="197.0" layoutY="173.0" style=" " text="FTP SAR - Sender And Reciver" textAlignment="CENTER" textFill="#9f9f9f" wrapText="false">
|
||||
<font>
|
||||
<Font size="18.0" />
|
||||
</font>
|
||||
</Label>
|
||||
</children>
|
||||
</AnchorPane>
|
||||
</children>
|
||||
</VBox>
|
@ -1,4 +0,0 @@
|
||||
package sample;
|
||||
|
||||
public class Controller {
|
||||
}
|
@ -1,8 +0,0 @@
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.layout.GridPane?>
|
||||
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<GridPane fx:controller="sample.Controller"
|
||||
xmlns:fx="http://javafx.com/fxml" alignment="center" hgap="10" vgap="10">
|
||||
</GridPane>
|
Loading…
Reference in New Issue
Block a user