comments
parent
32f87ce7e0
commit
745e07c286
@ -0,0 +1,10 @@
|
|||||||
|
<component name="InspectionProjectProfileManager">
|
||||||
|
<profile version="1.0">
|
||||||
|
<option name="myName" value="Project Default" />
|
||||||
|
<inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true">
|
||||||
|
<Languages>
|
||||||
|
<language minSize="105" name="Java" />
|
||||||
|
</Languages>
|
||||||
|
</inspection_tool>
|
||||||
|
</profile>
|
||||||
|
</component>
|
@ -0,0 +1,5 @@
|
|||||||
|
hahaha
|
||||||
|
================
|
||||||
|
This File is 1.a
|
||||||
|
================
|
||||||
|
|
@ -0,0 +1,5 @@
|
|||||||
|
2222222222222222
|
||||||
|
================
|
||||||
|
This File is 2.a
|
||||||
|
================
|
||||||
|
|
@ -0,0 +1,5 @@
|
|||||||
|
hahaha
|
||||||
|
================
|
||||||
|
This File is 1.a
|
||||||
|
================
|
||||||
|
|
@ -0,0 +1,5 @@
|
|||||||
|
0000000000000000
|
||||||
|
================
|
||||||
|
This File is 0.a
|
||||||
|
================
|
||||||
|
|
@ -0,0 +1,5 @@
|
|||||||
|
2222222222222222
|
||||||
|
================
|
||||||
|
This File is 2.a
|
||||||
|
================
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 665 KiB |
@ -1,23 +0,0 @@
|
|||||||
package com.echo.p2p_project.client.gui;
|
|
||||||
|
|
||||||
import javafx.application.Application;
|
|
||||||
import javafx.fxml.FXMLLoader;
|
|
||||||
import javafx.scene.Scene;
|
|
||||||
import javafx.stage.Stage;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
|
||||||
|
|
||||||
public class HelloApplication extends Application {
|
|
||||||
@Override
|
|
||||||
public void start(Stage stage) throws IOException {
|
|
||||||
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("hello-view.fxml"));
|
|
||||||
Scene scene = new Scene(fxmlLoader.load(), 320, 240);
|
|
||||||
stage.setTitle("Hello!");
|
|
||||||
stage.setScene(scene);
|
|
||||||
stage.show();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
launch();
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,14 +0,0 @@
|
|||||||
package com.echo.p2p_project.client.gui;
|
|
||||||
|
|
||||||
import javafx.fxml.FXML;
|
|
||||||
import javafx.scene.control.Label;
|
|
||||||
|
|
||||||
public class HelloController {
|
|
||||||
@FXML
|
|
||||||
private Label welcomeText;
|
|
||||||
|
|
||||||
@FXML
|
|
||||||
protected void onHelloButtonClick() {
|
|
||||||
welcomeText.setText("Welcome to JavaFX Application!");
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,14 +0,0 @@
|
|||||||
<?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="com.echo.p2p_project.client.gui.ClientIndexController"
|
|
||||||
prefHeight="400.0" prefWidth="600.0">
|
|
||||||
|
|
||||||
</AnchorPane>
|
|
@ -1,18 +1,141 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<?import javafx.scene.text.*?>
|
||||||
|
<?import javafx.geometry.*?>
|
||||||
<?import java.lang.*?>
|
<?import java.lang.*?>
|
||||||
<?import java.util.*?>
|
<?import java.util.*?>
|
||||||
<?import javafx.scene.*?>
|
<?import javafx.scene.*?>
|
||||||
<?import javafx.scene.control.*?>
|
<?import javafx.scene.control.*?>
|
||||||
<?import javafx.scene.layout.*?>
|
<?import javafx.scene.layout.*?>
|
||||||
|
|
||||||
|
|
||||||
<AnchorPane prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.echo.p2p_project.client.gui.ClientIndexController">
|
<AnchorPane prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.echo.p2p_project.client.gui.ClientIndexController">
|
||||||
<children>
|
<children>
|
||||||
<VBox prefHeight="451.0" prefWidth="679.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
<HBox alignment="CENTER">
|
||||||
<children>
|
<children>
|
||||||
<Button mnemonicParsing="false" text="Button" />
|
<VBox alignment="TOP_CENTER">
|
||||||
|
<children>
|
||||||
|
<HBox alignment="CENTER">
|
||||||
|
<children>
|
||||||
|
<Label text="Server IP ">
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</padding>
|
||||||
|
</Label>
|
||||||
|
<TextField fx:id="server_ip" maxWidth="-Infinity" minHeight="-Infinity" prefHeight="30.0" promptText="127.0.0.1" text="127.0.0.1">
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</TextField>
|
||||||
|
</children>
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets />
|
||||||
|
</VBox.margin>
|
||||||
|
</HBox>
|
||||||
|
<HBox alignment="CENTER">
|
||||||
|
<children>
|
||||||
|
<Label text="Server Port">
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</padding>
|
||||||
|
</Label>
|
||||||
|
<TextField fx:id="server_port" maxHeight="-Infinity" minHeight="-Infinity" prefHeight="30.0" promptText="1099" text="1099">
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</TextField>
|
||||||
|
</children>
|
||||||
|
</HBox>
|
||||||
|
<Button fx:id="connect_button" mnemonicParsing="false" text="Connect">
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="8.0" left="8.0" right="8.0" top="8.0" />
|
||||||
|
</padding>
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="8.0" left="8.0" right="8.0" top="8.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</Button>
|
||||||
|
<VBox alignment="CENTER">
|
||||||
|
<children>
|
||||||
|
<HBox alignment="CENTER_LEFT">
|
||||||
|
<children>
|
||||||
|
<Label text="Download">
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</padding>
|
||||||
|
</Label>
|
||||||
|
<ChoiceBox fx:id="download_datalist" prefWidth="150.0" />
|
||||||
|
<Button fx:id="download_button" disable="true" mnemonicParsing="false" text="Download">
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
</children>
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="8.0" left="8.0" right="8.0" top="8.0" />
|
||||||
|
</padding>
|
||||||
|
</HBox>
|
||||||
|
</children>
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</VBox>
|
||||||
|
<VBox alignment="TOP_CENTER">
|
||||||
|
<children>
|
||||||
|
<HBox alignment="CENTER_LEFT">
|
||||||
|
<children>
|
||||||
|
<Label text="Upload ">
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</padding>
|
||||||
|
</Label>
|
||||||
|
<ChoiceBox fx:id="reg_datalist" prefWidth="150.0" />
|
||||||
|
<Button fx:id="reg_button" disable="true" mnemonicParsing="false" text="Register Resource">
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
</children>
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="8.0" left="8.0" right="8.0" top="8.0" />
|
||||||
|
</padding>
|
||||||
|
</HBox>
|
||||||
|
</children>
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</VBox>
|
||||||
|
<Button fx:id="sync_button" disable="true" mnemonicParsing="false" text="SYNC DHRT" textFill="#ff4700" />
|
||||||
|
</children>
|
||||||
|
</VBox>
|
||||||
|
<VBox alignment="TOP_CENTER">
|
||||||
|
<children>
|
||||||
|
<Label text="DHRT" />
|
||||||
|
<TableView fx:id="DHRT_Table" prefHeight="200.0">
|
||||||
|
<columns>
|
||||||
|
<TableColumn fx:id="DHRT_GUID" prefWidth="75.0" text="GUID" />
|
||||||
|
<TableColumn fx:id="DHRT_NAME" prefWidth="75.0" text="NAME" />
|
||||||
|
<TableColumn fx:id="DHRT_HASH" prefWidth="75.0" text="HASH" />
|
||||||
|
</columns>
|
||||||
|
</TableView>
|
||||||
|
<VBox alignment="CENTER">
|
||||||
|
<children>
|
||||||
|
<Label text="Log">
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="8.0" left="8.0" right="8.0" top="8.0" />
|
||||||
|
</padding>
|
||||||
|
</Label>
|
||||||
|
<TextArea fx:id="log_field" prefHeight="200.0" wrapText="true">
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</TextArea>
|
||||||
|
</children>
|
||||||
|
</VBox>
|
||||||
|
</children>
|
||||||
|
</VBox>
|
||||||
</children>
|
</children>
|
||||||
</VBox>
|
<padding>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</padding>
|
||||||
|
</HBox>
|
||||||
</children>
|
</children>
|
||||||
</AnchorPane>
|
</AnchorPane>
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
<?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="com.echo.p2p_project.client.gui.ClientIndexController"
|
|
||||||
prefHeight="400.0" prefWidth="600.0">
|
|
||||||
|
|
||||||
</AnchorPane>
|
|
@ -1,18 +1,141 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<?import javafx.scene.text.*?>
|
||||||
|
<?import javafx.geometry.*?>
|
||||||
<?import java.lang.*?>
|
<?import java.lang.*?>
|
||||||
<?import java.util.*?>
|
<?import java.util.*?>
|
||||||
<?import javafx.scene.*?>
|
<?import javafx.scene.*?>
|
||||||
<?import javafx.scene.control.*?>
|
<?import javafx.scene.control.*?>
|
||||||
<?import javafx.scene.layout.*?>
|
<?import javafx.scene.layout.*?>
|
||||||
|
|
||||||
|
|
||||||
<AnchorPane prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.echo.p2p_project.client.gui.ClientIndexController">
|
<AnchorPane prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.echo.p2p_project.client.gui.ClientIndexController">
|
||||||
<children>
|
<children>
|
||||||
<VBox prefHeight="451.0" prefWidth="679.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
<HBox alignment="CENTER">
|
||||||
<children>
|
<children>
|
||||||
<Button mnemonicParsing="false" text="Button" />
|
<VBox alignment="TOP_CENTER">
|
||||||
|
<children>
|
||||||
|
<HBox alignment="CENTER">
|
||||||
|
<children>
|
||||||
|
<Label text="Server IP ">
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</padding>
|
||||||
|
</Label>
|
||||||
|
<TextField fx:id="server_ip" maxWidth="-Infinity" minHeight="-Infinity" prefHeight="30.0" promptText="127.0.0.1" text="127.0.0.1">
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</TextField>
|
||||||
|
</children>
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets />
|
||||||
|
</VBox.margin>
|
||||||
|
</HBox>
|
||||||
|
<HBox alignment="CENTER">
|
||||||
|
<children>
|
||||||
|
<Label text="Server Port">
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</padding>
|
||||||
|
</Label>
|
||||||
|
<TextField fx:id="server_port" maxHeight="-Infinity" minHeight="-Infinity" prefHeight="30.0" promptText="1099" text="1099">
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</TextField>
|
||||||
|
</children>
|
||||||
|
</HBox>
|
||||||
|
<Button fx:id="connect_button" mnemonicParsing="false" text="Connect">
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="8.0" left="8.0" right="8.0" top="8.0" />
|
||||||
|
</padding>
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="8.0" left="8.0" right="8.0" top="8.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</Button>
|
||||||
|
<VBox alignment="CENTER">
|
||||||
|
<children>
|
||||||
|
<HBox alignment="CENTER_LEFT">
|
||||||
|
<children>
|
||||||
|
<Label text="Download">
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</padding>
|
||||||
|
</Label>
|
||||||
|
<ChoiceBox fx:id="download_datalist" prefWidth="150.0" />
|
||||||
|
<Button fx:id="download_button" disable="true" mnemonicParsing="false" text="Download">
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
</children>
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="8.0" left="8.0" right="8.0" top="8.0" />
|
||||||
|
</padding>
|
||||||
|
</HBox>
|
||||||
|
</children>
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</VBox>
|
||||||
|
<VBox alignment="TOP_CENTER">
|
||||||
|
<children>
|
||||||
|
<HBox alignment="CENTER_LEFT">
|
||||||
|
<children>
|
||||||
|
<Label text="Upload ">
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</padding>
|
||||||
|
</Label>
|
||||||
|
<ChoiceBox fx:id="reg_datalist" prefWidth="150.0" />
|
||||||
|
<Button fx:id="reg_button" disable="true" mnemonicParsing="false" text="Register Resource">
|
||||||
|
<HBox.margin>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</HBox.margin>
|
||||||
|
</Button>
|
||||||
|
</children>
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="8.0" left="8.0" right="8.0" top="8.0" />
|
||||||
|
</padding>
|
||||||
|
</HBox>
|
||||||
|
</children>
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</VBox>
|
||||||
|
<Button fx:id="sync_button" disable="true" mnemonicParsing="false" text="SYNC DHRT" textFill="#ff4700" />
|
||||||
|
</children>
|
||||||
|
</VBox>
|
||||||
|
<VBox alignment="TOP_CENTER">
|
||||||
|
<children>
|
||||||
|
<Label text="DHRT" />
|
||||||
|
<TableView fx:id="DHRT_Table" prefHeight="200.0">
|
||||||
|
<columns>
|
||||||
|
<TableColumn fx:id="DHRT_GUID" prefWidth="75.0" text="GUID" />
|
||||||
|
<TableColumn fx:id="DHRT_NAME" prefWidth="75.0" text="NAME" />
|
||||||
|
<TableColumn fx:id="DHRT_HASH" prefWidth="75.0" text="HASH" />
|
||||||
|
</columns>
|
||||||
|
</TableView>
|
||||||
|
<VBox alignment="CENTER">
|
||||||
|
<children>
|
||||||
|
<Label text="Log">
|
||||||
|
<padding>
|
||||||
|
<Insets bottom="8.0" left="8.0" right="8.0" top="8.0" />
|
||||||
|
</padding>
|
||||||
|
</Label>
|
||||||
|
<TextArea fx:id="log_field" prefHeight="200.0" wrapText="true">
|
||||||
|
<VBox.margin>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</VBox.margin>
|
||||||
|
</TextArea>
|
||||||
|
</children>
|
||||||
|
</VBox>
|
||||||
|
</children>
|
||||||
|
</VBox>
|
||||||
</children>
|
</children>
|
||||||
</VBox>
|
<padding>
|
||||||
|
<Insets bottom="16.0" left="16.0" right="16.0" top="16.0" />
|
||||||
|
</padding>
|
||||||
|
</HBox>
|
||||||
</children>
|
</children>
|
||||||
</AnchorPane>
|
</AnchorPane>
|
||||||
|
Loading…
Reference in New Issue