-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsample.fxml
118 lines (116 loc) · 4.63 KB
/
sample.fxml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.MenuBar?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.RadioButton?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Region?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.web.WebView?>
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="800.0" prefWidth="1280.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="sample.Controller">
<top>
<VBox BorderPane.alignment="CENTER">
<children>
<MenuBar>
<menus>
<Menu mnemonicParsing="false" text="Edit">
<items>
<MenuItem mnemonicParsing="false" onAction="#addWord" text="Thêm Từ" />
<MenuItem mnemonicParsing="false" onAction="#changeWord" text="Sửa Từ" />
<MenuItem mnemonicParsing="false" onAction="#deleteWord" text="Xóa Từ" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Help">
<items>
<MenuItem mnemonicParsing="false" onAction="#about" text="About" />
</items>
</Menu>
</menus>
</MenuBar>
<HBox spacing="20.0">
<children>
<TextField fx:id="wordtarget" prefHeight="31.0" prefWidth="361.0" promptText="Nhập từ cần tra...">
<font>
<Font size="18.0" />
</font>
</TextField>
<Button mnemonicParsing="false" onAction="#printTranslate" text="Dịch Nghĩa">
<font>
<Font size="18.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#addWord" text="Thêm Từ">
<font>
<Font size="18.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#changeWord" text="Sửa Từ">
<font>
<Font size="18.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#deleteWord" text="Xóa từ">
<font>
<Font size="18.0" />
</font>
</Button>
<Region HBox.hgrow="ALWAYS">
<HBox.margin>
<Insets />
</HBox.margin>
</Region>
<Button mnemonicParsing="false" onAction="#spellus" text="US">
<font>
<Font size="18.0" />
</font>
</Button>
<Button mnemonicParsing="false" onAction="#spelluk" text="UK">
<font>
<Font size="18.0" />
</font>
</Button>
</children>
<VBox.margin>
<Insets bottom="8.0" left="8.0" right="8.0" top="8.0" />
</VBox.margin>
</HBox>
</children>
</VBox>
</top>
<left>
<ListView fx:id="listView" prefHeight="700.0" prefWidth="369.0" BorderPane.alignment="CENTER" />
</left>
<center>
<WebView fx:id="webView" fontScale="1.5" prefHeight="200.0" prefWidth="200.0" />
</center>
<bottom>
<HBox BorderPane.alignment="CENTER">
<children>
<RadioButton fx:id="history" mnemonicParsing="false" onAction="#historyView" text="Gần đây">
<padding>
<Insets left="10.0" />
</padding>
<font>
<Font size="16.0" />
</font>
</RadioButton>
<Region HBox.hgrow="ALWAYS" />
<Label text="Nguyen Tuan Linh / Nguyen Thi Lien @2018" textAlignment="CENTER">
<font>
<Font size="16.0" />
</font>
</Label>
</children>
<padding>
<Insets bottom="10.0" top="10.0" />
</padding>
</HBox>
</bottom>
</BorderPane>