回答編集履歴
1
表現の変更とコードの添付
answer
CHANGED
|
@@ -1,4 +1,55 @@
|
|
|
1
1
|
VBoxではなくAnchorPaneを使って標準サイズ属性をデフォルトにことで解決しました。
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
3分割画面のコンテナをAnchorPaneのTOPからずらすことで
|
|
3
|
+
AnchorPaneだとメニューバーと3分割画面が重なり、VBoxで縦並びにしてレイアウトすることに
|
|
4
|
+
執着していたのですが、3分割画面のコンテナをAnchorPaneのTOPからずらすことで
|
|
5
|
+
メニューバーを配置できました。
|
|
6
|
+
|
|
7
|
+
```ここに言語を入力
|
|
8
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
9
|
+
|
|
10
|
+
<?import java.lang.*?>
|
|
11
|
+
<?import javafx.scene.control.*?>
|
|
12
|
+
<?import javafx.scene.layout.*?>
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
<AnchorPane xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1">
|
|
16
|
+
<children>
|
|
17
|
+
<MenuBar AnchorPane.topAnchor="0.0">
|
|
18
|
+
<menus>
|
|
19
|
+
<Menu mnemonicParsing="false" text="File">
|
|
20
|
+
<items>
|
|
21
|
+
<MenuItem mnemonicParsing="false" text="Close" />
|
|
22
|
+
</items>
|
|
23
|
+
</Menu>
|
|
24
|
+
<Menu mnemonicParsing="false" text="Edit">
|
|
25
|
+
<items>
|
|
26
|
+
<MenuItem mnemonicParsing="false" text="Delete" />
|
|
27
|
+
</items>
|
|
28
|
+
</Menu>
|
|
29
|
+
<Menu mnemonicParsing="false" text="Help">
|
|
30
|
+
<items>
|
|
31
|
+
<MenuItem mnemonicParsing="false" text="About" />
|
|
32
|
+
</items>
|
|
33
|
+
</Menu>
|
|
34
|
+
</menus>
|
|
35
|
+
</MenuBar>
|
|
36
|
+
<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">
|
|
37
|
+
<items>
|
|
38
|
+
<SplitPane dividerPositions="0.5" orientation="VERTICAL">
|
|
39
|
+
<items>
|
|
40
|
+
<ListView />
|
|
41
|
+
<TableView>
|
|
42
|
+
<columns>
|
|
43
|
+
<TableColumn prefWidth="112.0" text="C1" />
|
|
44
|
+
<TableColumn prefWidth="114.0" text="C2" />
|
|
45
|
+
</columns>
|
|
46
|
+
</TableView>
|
|
47
|
+
</items>
|
|
48
|
+
</SplitPane>
|
|
49
|
+
<ScrollPane />
|
|
50
|
+
</items>
|
|
51
|
+
</SplitPane>
|
|
52
|
+
</children>
|
|
53
|
+
</AnchorPane>
|
|
54
|
+
|
|
55
|
+
```
|