1.修复IDEA中无法加载resources文件夹的Bug;2.修改多语言Demo

This commit is contained in:
yangsuiyu
2020-08-28 23:20:34 +08:00
parent 5b7131febf
commit d139cbe3c5
15 changed files with 46 additions and 26 deletions

View File

@@ -962,7 +962,7 @@ public enum FXPlusLocale {
```java
@FXWindow(mainStage = true, title = "languageDemo")
@FXController(path = "fxml/languageDemo/languageDemo.fxml", locale = FXPlusLocale.SIMPLIFIED_CHINESE)
@FXController(path = "fxml/langDemo/langDemo.fxml", locale = FXPlusLocale.SIMPLIFIED_CHINESE)
public class ChineseController extends FXBaseController {
@FXML
public void clickToOtherLanguage() {
@@ -978,7 +978,7 @@ public class ChineseController extends FXBaseController {
```java
@FXWindow(mainStage = false, title = "languageDemo")
@FXController(path = "fxml/languageDemo/languageDemo.fxml", locale = FXPlusLocale.ENGLISH)
@FXController(path = "fxml/langDemo/langDemo.fxml", locale = FXPlusLocale.ENGLISH)
public class EnglishController extends FXBaseController {
@FXML
public void clickToOtherLanguage() {
@@ -1050,7 +1050,7 @@ register.email=\u90ae\u7bb1
#### 示例演示
示例代码在`cn.edu.scau.biubiusuisui.example.languageDemo`中,运行可得:
示例代码在`cn.edu.scau.biubiusuisui.example.langDemo`中,运行可得:
![language_demo](README/language_demo.gif)