修正部分api名称不一致的问题,新增firstDemo示例代码,展现精细化操作时该如何编写代码
This commit is contained in:
15
src/main/resources/firstDemo/firstDemo.fxml
Normal file
15
src/main/resources/firstDemo/firstDemo.fxml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.ListView?>
|
||||
<?import javafx.scene.layout.Pane?>
|
||||
<fx:root prefHeight="400.0" prefWidth="600.0" type="Pane" xmlns="http://javafx.com/javafx/8.0.171"
|
||||
xmlns:fx="http://javafx.com/fxml/1" fx:controller="cn.edu.scau.biubiusuisui.example.firstDemo.MainController">
|
||||
<children>
|
||||
<Button fx:id="addHelloButton" layoutX="432.0" layoutY="83.0" mnemonicParsing="false" onAction="#addWord"
|
||||
text="add"/>
|
||||
<Button fx:id="deleteHelloButton" layoutX="432.0" layoutY="151.0" mnemonicParsing="false" onAction="#delWord"
|
||||
text="del"/>
|
||||
<ListView fx:id="list" layoutX="42.0" layoutY="51.0" prefHeight="275.0" prefWidth="334.0"/>
|
||||
</children>
|
||||
</fx:root>
|
||||
Reference in New Issue
Block a user