Skip to content
This repository was archived by the owner on Nov 28, 2025. It is now read-only.

Commit 992cfbb

Browse files
committed
20.3 small patch, make im/export textfield right aligned
1 parent c978a1f commit 992cfbb

File tree

4 files changed

+20
-16
lines changed

4 files changed

+20
-16
lines changed

.idea/dictionaries/ma201.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,15 @@
1414

1515
## 待实现功能
1616

17+
- [ ] 版权窗口
1718
- [ ] 自动补全学生名
1819
- [ ] 可以添加多个班级的学生
1920
- [ ] Android版排座位表
2021

2122
## 注意事项
2223

23-
1. 在程序里看到这份文档时,程序已在程序文件的目录下创建了**导入学生**的表格。 请根据指示在表格中填入名字、拼音(**全部小写,不能有空格**)、是否住校,至少2名学生。
24-
2. **请不要导入原表格!已做更改!(删除了第8行)**
24+
1. 在程序里看到这份文档时,程序已在程序文件的目录下创建了**导入学生**的表格。 请根据指示在表格中填入名字、拼音(**全部小写,不能有空格**)、是否住校,至少2名学生。 然后重新打开程序。
25+
2. **请不要导入原先的表格!已做更改!(删除了第8行)**
2526
3. 导入导出界面可以用回车代表点击确定
2627
4. 出现任何bug,请在Github上发issue(或私信)(可通过主界面左下角版权按钮直达)
2728

src/cn/rocket/deksrt/main/IEportDialog.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ void okM() throws IOException, IllegalAccessException, InvalidFormatException {
7070

7171
@FXML
7272
void cancelM() {
73+
GlobalVariables.mwObj.unlockMainWindow();
7374
GlobalVariables.iodS.close();
7475
}
7576

@@ -90,6 +91,7 @@ void fileChooserLinker() {
9091
selected = fc.showSaveDialog(GlobalVariables.iodS);
9192
isFileChooserCreated = false;
9293
iodTxtF.setText(selected != null ? selected.getAbsolutePath() : "");
94+
iodTxtF.appendText("");
9395
}
9496

9597
@FXML

src/cn/rocket/deksrt/resource/IEportDialog.fxml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@
1111
<?import javafx.scene.text.Font?>
1212
<AnchorPane onKeyTyped="#detectEnter" prefHeight="164.0" prefWidth="480.0" xmlns="http://javafx.com/javafx/8.0.171"
1313
xmlns:fx="http://javafx.com/fxml/1" fx:controller="cn.rocket.deksrt.main.IEportDialog">
14-
<Label fx:id="iLal" layoutX="25.0" layoutY="32.0" prefHeight="32.0" text="从...导入:" AnchorPane.leftAnchor="25.0">
15-
<font>
16-
<Font size="22.0"/>
17-
</font>
18-
</Label>
19-
<JFXButton fx:id="iconBtn" layoutX="332.0" layoutY="25.0" onAction="#fileChooserLinker" prefHeight="32.0"
20-
prefWidth="32.0" stylesheets="@style.css" AnchorPane.rightAnchor="25.0" AnchorPane.topAnchor="25.0"/>
21-
<JFXButton fx:id="iBtnOK" defaultButton="true" layoutX="236.0" layoutY="82.0" onAction="#okM" prefHeight="32.0"
22-
stylesheets="@style.css" text="确定" AnchorPane.bottomAnchor="25.0" AnchorPane.rightAnchor="128.0"/>
23-
<JFXButton fx:id="iBtnCancel" cancelButton="true" layoutX="305.0" layoutY="82.0" onAction="#cancelM"
24-
prefHeight="32.0" prefWidth="74.0" stylesheets="@style.css" text="取消" AnchorPane.bottomAnchor="25.0"
25-
AnchorPane.rightAnchor="25.0"/>
26-
<JFXTextField fx:id="iodTxtF" layoutX="115.0" layoutY="27.0" prefHeight="42.0" prefWidth="294.0"
27-
stylesheets="@style.css"/>
14+
<Label fx:id="iLal" layoutX="25.0" layoutY="32.0" prefHeight="32.0" text="从...导入:" AnchorPane.leftAnchor="25.0">
15+
<font>
16+
<Font size="22.0"/>
17+
</font>
18+
</Label>
19+
<JFXButton fx:id="iconBtn" layoutX="332.0" layoutY="25.0" onAction="#fileChooserLinker" prefHeight="32.0"
20+
prefWidth="32.0" stylesheets="@style.css" AnchorPane.rightAnchor="25.0" AnchorPane.topAnchor="25.0"/>
21+
<JFXButton fx:id="iBtnOK" defaultButton="true" layoutX="236.0" layoutY="82.0" onAction="#okM" prefHeight="32.0"
22+
stylesheets="@style.css" text="确定" AnchorPane.bottomAnchor="25.0" AnchorPane.rightAnchor="128.0"/>
23+
<JFXButton fx:id="iBtnCancel" cancelButton="true" layoutX="305.0" layoutY="82.0" onAction="#cancelM"
24+
prefHeight="32.0" prefWidth="74.0" stylesheets="@style.css" text="取消" AnchorPane.bottomAnchor="25.0"
25+
AnchorPane.rightAnchor="25.0"/>
26+
<JFXTextField fx:id="iodTxtF" alignment="CENTER_RIGHT" layoutX="115.0" layoutY="27.0" prefHeight="42.0"
27+
prefWidth="294.0" stylesheets="@style.css"/>
2828
</AnchorPane>

0 commit comments

Comments
 (0)