注册界面:用户通过输入页面信息,点击注册,将数据存入数据库中。
<Tab text="用户注册">
<content>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="761.0" prefWidth="819.0">
<children>
<TextField fx:id="id" layoutX="250.0" layoutY="50.0" prefHeight="30.0" prefWidth="440.0" />
<TextField fx:id="username" layoutX="250.0" layoutY="100.0" prefHeight="30.0" prefWidth="440.0" />
<TextField fx:id="password" layoutX="250.0" layoutY="150.0" prefHeight="30.0" prefWidth="440.0" />
<TextField fx:id="email" layoutX="250.0" layoutY="200.0" prefHeight="30.0" prefWidth="440.0" />
<TextField fx:id="description" layoutX="250.0" layoutY="250.0" prefHeight="30.0" prefWidth="440.0" />
<Label layoutX="75.0" layoutY="50.0" styleClass="font-unit" text="编号:" />
<Label layoutX="75.0" layoutY="100.0" styleClass="font-unit" text="用户名:" />
<Label layoutX="75.0" layoutY="150.0" styleClass="font-unit" text="密码:" />
<Label layoutX="75.0" layoutY="200.0" styleClass="font-unit" text="邮箱:" />
<Label layoutX="75.0" layoutY="250.0" styleClass="font-unit" text="描述:" />
<Button layoutX="250.0" layoutY="355.0" mnemonicParsing="false" onMouseClicked="#addUserinfo" prefHeight="35.0" prefWidth="190.0" text="注册" />
</children>
</AnchorPane>
</content>
</Tab>
有需要可留言