diff --git a/README.md b/README.md
index 30965fc..53ec2fd 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,7 @@
# fx-falsework
-基于javafx、spring boot 开发的客户端与服务端系统开发脚手架
+基于javafx、spring boot 开发的客户端与服务端系统开发脚手架。本项目目的是帮助快速构建javafx系统,前后端分离,客户端UI提供明暗两种主题,与服务端通信用的是OpenFeign。服务端是标准的spring-boot工程。
+
+# qq交流群:114697782
# 说明:
@@ -16,7 +18,7 @@
6.用户名:admin 密码:111111
7.提供明色和暗色两个主题
-
+
# 界面:
登录
diff --git a/falsework-client/pom.xml b/falsework-client/pom.xml
index 970d0b2..def5598 100644
--- a/falsework-client/pom.xml
+++ b/falsework-client/pom.xml
@@ -170,6 +170,16 @@
lombok
1.18.16
+
+
+
+
+
+
+ org.jetbrains.kotlin
+ kotlin-compiler
+ 1.0.6
+
diff --git a/falsework-client/src/main/java/com/fx/client/AppStartup.java b/falsework-client/src/main/java/com/fx/client/AppStartup.java
index 466468c..db4fc37 100644
--- a/falsework-client/src/main/java/com/fx/client/AppStartup.java
+++ b/falsework-client/src/main/java/com/fx/client/AppStartup.java
@@ -27,7 +27,7 @@ import java.io.InputStream;
/**
- * @description:
+ * @description: 应用启动类
* @className: AppStartup
* @author: liwen
* @date: 2019-08-26 16:24
@@ -55,17 +55,12 @@ public class AppStartup extends Application {
@Override
public void start(Stage stage) throws Exception {
- String keyPrefix = "";
-// //全局样式
-// setUserAgentStylesheet(null);
-// StyleManager.getInstance().addUserAgentStylesheet("css/app-light.css");
new Thread(() -> {
try {
SVGGlyphLoader.loadGlyphsFont(AppStartup.class.getResourceAsStream("/fonts/icon_font/iconfont.svg"),
ApplicatonStore.ICON_FONT_KEY);
-// SVGGlyphLoader.loadGlyphsFont(AppStartup.class.getResourceAsStream("/fonts/icon_font/icon-font-solid.svg"),
-// "IconFontSolid.svg");
+
} catch (IOException ioExc) {
ioExc.printStackTrace();
}
@@ -83,15 +78,13 @@ public class AppStartup extends Application {
wfxDecorator.setCustomMaximize(true);
wfxDecorator.setGraphic(new SVGGlyph(""));
-
-
Scene scene = new Scene(wfxDecorator, 1000, 750);
stage.setTitle("JavaFX Welcome");
scene.setFill(Color.TRANSPARENT);
stage.setScene(scene);
stage.show();
-
+ /*全局样式*/
scene.getStylesheets().addAll(JFoenixResources.load("/css/app-fonts.css").toExternalForm(), AppStartup.class.getResource("/css/login.css").toExternalForm(), AppStartup.class.getResource("/css/app-light.css").toExternalForm());
}
@@ -101,4 +94,8 @@ public class AppStartup extends Application {
WSClient.getInstance().close();
}
+
+ public static void main(String[] args) {
+ launch(args);
+ }
}
diff --git a/falsework-client/src/main/java/com/fx/client/gui/uicomponents/login/LoginController.java b/falsework-client/src/main/java/com/fx/client/gui/uicomponents/login/LoginController.java
index b2241af..9a3b987 100644
--- a/falsework-client/src/main/java/com/fx/client/gui/uicomponents/login/LoginController.java
+++ b/falsework-client/src/main/java/com/fx/client/gui/uicomponents/login/LoginController.java
@@ -77,10 +77,10 @@ public class LoginController {
@FXML
private StackPane centerPane;
- //正面视图
+ /*正面视图*/
@FXML
public HBox loginPane;
- //反面视图
+ /*反面视图*/
@FXML
public HBox registeredPane;
@FXML
@@ -113,11 +113,11 @@ public class LoginController {
private JFXPasswordField rePwd2TextField;
@FXML
private RegexValidator regexValidatorPwd2;
- //翻转角度
+ /*翻转角度*/
private DoubleProperty angleProperty = new SimpleDoubleProperty(Math.PI / 2);
- //正面翻转特效
+ /*正面翻转特效*/
private PerspectiveTransform frontEffect = new PerspectiveTransform();
- //反面翻转特效
+ /*反面翻转特效*/
private PerspectiveTransform backEffect = new PerspectiveTransform();
private Timeline frontTimeLine = new Timeline();
private Timeline backTimeLine = new Timeline();
@@ -128,9 +128,6 @@ public class LoginController {
private DoubleProperty imageHeiht = new SimpleDoubleProperty();
-// @Inject
-// private WebSocketManagement webSocketManagement;
-
@FXML
@ActionTrigger("login")
private JFXButton loginBut;
@@ -261,7 +258,7 @@ public class LoginController {
logBack.fitWidthProperty().bind(imageWidth);
imagePane.getChildren().add(new Label("", logBack));
- String imgUrl=this.getClass().getClassLoader().getResource("").toURI().getPath()+"images/login";
+ String imgUrl = this.getClass().getClassLoader().getResource("").toURI().getPath() + "images/login";
System.err.println(imgUrl);
List files = Arrays.asList(new File(imgUrl).listFiles());
@@ -408,7 +405,7 @@ public class LoginController {
ObjectRestResponse rel = Request.connector(LoginFeign.class).login(jwtAuthenticationRequest);
if (rel.getStatus() == 200) {
WSClient.getInstance().addHeader("Authorization", rel.getData());
- WSClient.getInstance().addHeader("userName",userNameTextField.getText());
+ WSClient.getInstance().addHeader("userName", userNameTextField.getText());
WSClient.getInstance().connect();
}
diff --git a/falsework-client/src/main/java/com/fx/client/gui/uicomponents/main/MainController.java b/falsework-client/src/main/java/com/fx/client/gui/uicomponents/main/MainController.java
index e3471e2..16a3448 100644
--- a/falsework-client/src/main/java/com/fx/client/gui/uicomponents/main/MainController.java
+++ b/falsework-client/src/main/java/com/fx/client/gui/uicomponents/main/MainController.java
@@ -68,7 +68,6 @@ public class MainController {
@FXML
private StackPane rootPane;
- @FXML
private JFXListView