Skip to content
Snippets Groups Projects
Commit 7044019f authored by Koivisto Ida Maria Hannuntytär's avatar Koivisto Ida Maria Hannuntytär
Browse files

kuvakansion siirto

parent 6cd9fe22
No related branches found
No related tags found
No related merge requests found
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
......@@ -7,6 +7,7 @@ import fi.jyu.mit.fxgui.Dialogs;
import javafx.application.Application.Parameters;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.TextField;
/**
* @author idamk
......@@ -15,6 +16,8 @@ import javafx.fxml.Initializable;
*/
public class RalliGUIController implements Initializable {
@FXML private TextField textHaettava; //haettava aloitusikkunasta
@FXML void handleHae() {
hae();
}
......
......@@ -6,11 +6,11 @@
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.MenuBar?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.text.Font?>
<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="rekisteri.RalliGUIController">
<top>
<MenuBar BorderPane.alignment="CENTER">
......@@ -20,12 +20,12 @@
<MenuItem mnemonicParsing="false" text="Close" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Edit">
<Menu mnemonicParsing="false" text="Muokkkaa">
<items>
<MenuItem mnemonicParsing="false" text="Delete" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Help">
<Menu mnemonicParsing="false" text="Apua">
<items>
<MenuItem mnemonicParsing="false" text="About" />
</items>
......@@ -47,7 +47,8 @@
</BorderPane.margin>
<children>
<Button mnemonicParsing="false" onAction="#handleUusi" text="Lisää Uusi" />
<Button mnemonicParsing="false" onAction="#handleHae" text="Hae">
<TextField fx:id="hakukentta" />
<Button alignment="CENTER" mnemonicParsing="false" onAction="#handleHae" text="Hae">
<HBox.margin>
<Insets />
</HBox.margin>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment