回答編集履歴
1
表現の変更とコードの添付
test
CHANGED
@@ -2,6 +2,108 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
-
|
5
|
+
AnchorPaneだとメニューバーと3分割画面が重なり、VBoxで縦並びにしてレイアウトすることに
|
6
6
|
|
7
|
-
3分割画面のコンテナをAnchorPaneのTOPからずらすことで
|
7
|
+
執着していたのですが、3分割画面のコンテナをAnchorPaneのTOPからずらすことで
|
8
|
+
|
9
|
+
メニューバーを配置できました。
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
```ここに言語を入力
|
14
|
+
|
15
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
<?import java.lang.*?>
|
20
|
+
|
21
|
+
<?import javafx.scene.control.*?>
|
22
|
+
|
23
|
+
<?import javafx.scene.layout.*?>
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
<AnchorPane xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1">
|
30
|
+
|
31
|
+
<children>
|
32
|
+
|
33
|
+
<MenuBar AnchorPane.topAnchor="0.0">
|
34
|
+
|
35
|
+
<menus>
|
36
|
+
|
37
|
+
<Menu mnemonicParsing="false" text="File">
|
38
|
+
|
39
|
+
<items>
|
40
|
+
|
41
|
+
<MenuItem mnemonicParsing="false" text="Close" />
|
42
|
+
|
43
|
+
</items>
|
44
|
+
|
45
|
+
</Menu>
|
46
|
+
|
47
|
+
<Menu mnemonicParsing="false" text="Edit">
|
48
|
+
|
49
|
+
<items>
|
50
|
+
|
51
|
+
<MenuItem mnemonicParsing="false" text="Delete" />
|
52
|
+
|
53
|
+
</items>
|
54
|
+
|
55
|
+
</Menu>
|
56
|
+
|
57
|
+
<Menu mnemonicParsing="false" text="Help">
|
58
|
+
|
59
|
+
<items>
|
60
|
+
|
61
|
+
<MenuItem mnemonicParsing="false" text="About" />
|
62
|
+
|
63
|
+
</items>
|
64
|
+
|
65
|
+
</Menu>
|
66
|
+
|
67
|
+
</menus>
|
68
|
+
|
69
|
+
</MenuBar>
|
70
|
+
|
71
|
+
<SplitPane dividerPositions="0.5" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="26.0">
|
72
|
+
|
73
|
+
<items>
|
74
|
+
|
75
|
+
<SplitPane dividerPositions="0.5" orientation="VERTICAL">
|
76
|
+
|
77
|
+
<items>
|
78
|
+
|
79
|
+
<ListView />
|
80
|
+
|
81
|
+
<TableView>
|
82
|
+
|
83
|
+
<columns>
|
84
|
+
|
85
|
+
<TableColumn prefWidth="112.0" text="C1" />
|
86
|
+
|
87
|
+
<TableColumn prefWidth="114.0" text="C2" />
|
88
|
+
|
89
|
+
</columns>
|
90
|
+
|
91
|
+
</TableView>
|
92
|
+
|
93
|
+
</items>
|
94
|
+
|
95
|
+
</SplitPane>
|
96
|
+
|
97
|
+
<ScrollPane />
|
98
|
+
|
99
|
+
</items>
|
100
|
+
|
101
|
+
</SplitPane>
|
102
|
+
|
103
|
+
</children>
|
104
|
+
|
105
|
+
</AnchorPane>
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
```
|