diff --git a/src/fxHarakka/HarakkaView.fxml b/src/fxHarakka/HarakkaView.fxml index 7e91f6636c733bd647e63008816c79450c4aad0d..6d8d46faa0ed1f359fef16bf1e0a1185700c5a49 100644 --- a/src/fxHarakka/HarakkaView.fxml +++ b/src/fxHarakka/HarakkaView.fxml @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> +<?import javafx.geometry.Insets?> <?import javafx.scene.control.Button?> <?import javafx.scene.control.CheckBox?> <?import javafx.scene.control.ColorPicker?> @@ -8,6 +9,7 @@ <?import javafx.scene.control.Menu?> <?import javafx.scene.control.MenuBar?> <?import javafx.scene.control.MenuItem?> +<?import javafx.scene.control.ScrollPane?> <?import javafx.scene.control.SplitPane?> <?import javafx.scene.control.Tab?> <?import javafx.scene.control.TabPane?> @@ -15,6 +17,7 @@ <?import javafx.scene.layout.AnchorPane?> <?import javafx.scene.layout.BorderPane?> <?import javafx.scene.layout.TilePane?> +<?import javafx.scene.layout.VBox?> <?import javafx.scene.paint.Color?> <?import javafx.scene.shape.Line?> <?import javafx.scene.text.Font?> @@ -43,64 +46,64 @@ <TabPane fx:id="lehti" layoutX="26.0" layoutY="54.0" prefHeight="375.0" prefWidth="346.0" tabClosingPolicy="UNAVAILABLE"> <tabs> <Tab text="Projekti 1"> - <content> - <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="180.0" prefWidth="200.0"> - <children> - <Button id="P1I2" fx:id="p1t2" layoutX="22.0" layoutY="59.0" mnemonicParsing="false" onAction="#handleTehtava" prefHeight="26.0" prefWidth="302.0" text="Selkkari (Mekaniikka)"> - <contextMenu> - <ContextMenu> - <items> - <MenuItem mnemonicParsing="false" onAction="#handleMuokkaa" text="Muokkaa" /> - </items> - </ContextMenu> - </contextMenu></Button> - <Button id="P1I1" fx:id="p1t1" layoutX="22.0" layoutY="27.0" mnemonicParsing="false" onAction="#handleTehtava" prefHeight="26.0" prefWidth="302.0" text="Kvantti Laskarit"> - <contextMenu> - <ContextMenu> - <items> - <MenuItem mnemonicParsing="false" onAction="#handleMuokkaa" text="Muokkaa" /> - </items> - </ContextMenu> - </contextMenu></Button> - <Button id="P1I3" fx:id="p1t3" layoutX="22.0" layoutY="91.0" mnemonicParsing="false" onAction="#handleTehtava" prefHeight="26.0" prefWidth="302.0" text="Sähköoppi Laskarit"> - <contextMenu> - <ContextMenu> - <items> - <MenuItem mnemonicParsing="false" onAction="#HandleMuokkaa" text="Muokkaa" /> - </items> - </ContextMenu> - </contextMenu> - </Button> - </children></AnchorPane> + <ScrollPane prefHeight="200.0" prefWidth="200.0"> + <content> + <AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="200.0" prefWidth="200.0" /> + </content> + </ScrollPane> + </content> + <content> + <ScrollPane prefHeight="200.0" prefWidth="200.0"> + <content> + <VBox prefHeight="200.0" prefWidth="100.0"> + <children> + <Button maxWidth="1.7976931348623157E308" mnemonicParsing="false" text="Button"> + <VBox.margin> + <Insets left="10.0" right="10.0" top="10.0" /> + </VBox.margin> + </Button> + <Button maxWidth="1.7976931348623157E308" mnemonicParsing="false" text="Button"> + <VBox.margin> + <Insets left="10.0" right="10.0" top="10.0" /> + </VBox.margin> + </Button> + <Button maxWidth="1.7976931348623157E308" mnemonicParsing="false" text="Button"> + <VBox.margin> + <Insets left="10.0" right="10.0" top="10.0" /> + </VBox.margin> + </Button> + </children> + </VBox> + </content> + </ScrollPane> </content> </Tab> <Tab text="Projekti 2"> <content> - <AnchorPane prefHeight="200.0" prefWidth="200.0"> - <children> - <AnchorPane layoutX="43.0" layoutY="40.0" prefHeight="343.5" prefWidth="346.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"> + <ScrollPane prefHeight="200.0" prefWidth="200.0"> + <content> + <VBox prefHeight="200.0" prefWidth="100.0"> <children> - <Button id="P2I1" fx:id="p2t1" layoutX="22.0" layoutY="28.0" mnemonicParsing="false" onAction="#handleTehtava" prefHeight="26.0" prefWidth="302.0" text="Ohjelmointi HT3"> - <contextMenu> - <ContextMenu> - <items> - <MenuItem mnemonicParsing="false" onAction="#handleMuokkaa" text="Muokkaa" /> - </items> - </ContextMenu> - </contextMenu></Button> - <Button id="P2I2" fx:id="p2t2" layoutX="22.0" layoutY="60.0" mnemonicParsing="false" onAction="#handleTehtava" prefHeight="26.0" prefWidth="302.0" text="Ohjelmointi d6"> - <contextMenu> - <ContextMenu> - <items> - <MenuItem mnemonicParsing="false" onAction="#handleMuokkaa" text="Muokkaa" /> - </items> - </ContextMenu> - </contextMenu></Button> + <Button maxWidth="1.7976931348623157E308" mnemonicParsing="false" text="Button"> + <VBox.margin> + <Insets left="10.0" right="10.0" top="10.0" /> + </VBox.margin> + </Button> + <Button maxWidth="1.7976931348623157E308" mnemonicParsing="false" text="Button"> + <VBox.margin> + <Insets left="10.0" right="10.0" top="10.0" /> + </VBox.margin> + </Button> + <Button maxWidth="1.7976931348623157E308" mnemonicParsing="false" text="Button"> + <VBox.margin> + <Insets left="10.0" right="10.0" top="10.0" /> + </VBox.margin> + </Button> </children> - </AnchorPane> - </children> - </AnchorPane> + </VBox> + </content> + </ScrollPane> </content> </Tab> </tabs>