mystyle-java-fx-tools/src/main/resources/fxml/websocket-client.fxml

25 lines
1.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
<AnchorPane prefHeight="649.0" prefWidth="1200.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.zhangmeng.tools.controller.WebSocketClientController">
<children>
<TextField fx:id="ip" layoutX="243.0" layoutY="60.0" prefHeight="25.0" prefWidth="198.0" AnchorPane.topAnchor="60.0" />
<Label layoutX="176.0" layoutY="64.0" text="ip:" AnchorPane.topAnchor="64.0" />
<TextArea fx:id="show_result" layoutX="243.0" layoutY="131.0" prefHeight="316.0" prefWidth="845.0" AnchorPane.bottomAnchor="202.0" AnchorPane.leftAnchor="243.0" AnchorPane.rightAnchor="112.0" AnchorPane.topAnchor="131.0" />
<TextField fx:id="content" layoutX="243.0" layoutY="493.0" prefHeight="25.0" prefWidth="845.0" AnchorPane.bottomAnchor="131.0" />
<Label layoutX="169.0" layoutY="497.0" text="发送内容:" AnchorPane.bottomAnchor="135.0" />
<Button fx:id="send" layoutX="1103.0" layoutY="493.0" mnemonicParsing="false" text="发送" AnchorPane.bottomAnchor="131.0" />
<Label layoutX="169.0" layoutY="133.0" text="内容:" />
<Label layoutX="487.0" layoutY="64.0" text="port:" />
<TextField fx:id="port" layoutX="539.0" layoutY="60.0" />
<Button fx:id="conn" layoutX="1042.0" layoutY="60.0" mnemonicParsing="false" text="连接" />
<Label layoutX="726.0" layoutY="64.0" text="参数:" />
<TextField fx:id="params" layoutX="770.0" layoutY="60.0" prefHeight="25.0" prefWidth="251.0" />
</children>
</AnchorPane>