-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1fae5cb
commit ca2b97a
Showing
5 changed files
with
57 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
# DatabaseJavafx | ||
Databaseapplication with JavaFX | ||
|
||
(c) Matthias Kroiss, Christian Trinh | ||
>Copyright (c) 2023 Matthias Kroiss, Christian Thrinh | ||
All rights reserved. | ||
This software is proprietary and confidential. | ||
No part of this software may be used, reproduced, | ||
transmitted, or distributed in any form or by any | ||
means, electronic or mechanical, including photocopying, | ||
recording, or any information storage and retrieval system, | ||
without the prior written permission of Matthias Kroiss, Christian Trinh. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 21 additions & 19 deletions
40
src/main/resources/com/example/databasejavafx/insertWindow.fxml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,46 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.geometry.Insets?> | ||
<?import javafx.geometry.*?> | ||
<?import javafx.scene.control.*?> | ||
<?import javafx.scene.layout.*?> | ||
<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" | ||
prefWidth="600.0" spacing="20.0" xmlns="http://javafx.com/javafx/" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.databasejavafx.PersonC"> | ||
|
||
<?import javafx.scene.text.Text?> | ||
<VBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" spacing="20.0" xmlns="http://javafx.com/javafx/11.0.14-internal" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.databasejavafx.PersonC"> | ||
<children> | ||
<GridPane alignment="CENTER_LEFT" hgap="10.0" vgap="5.0"> | ||
<columnConstraints> | ||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="285.0" minWidth="10.0" prefWidth="127.0"/> | ||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="453.0" minWidth="10.0" prefWidth="453.0"/> | ||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="285.0" minWidth="10.0" prefWidth="127.0" /> | ||
<ColumnConstraints hgrow="SOMETIMES" maxWidth="453.0" minWidth="10.0" prefWidth="453.0" /> | ||
</columnConstraints> | ||
<rowConstraints> | ||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/> | ||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/> | ||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES"/> | ||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> | ||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> | ||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> | ||
</rowConstraints> | ||
<children> | ||
<Label text="Name:" GridPane.rowIndex="1"/> | ||
<Label text="ID:"/> | ||
<Label text="Wohnort:" GridPane.rowIndex="2"/> | ||
<TextField fx:id="tfID" GridPane.columnIndex="1"/> | ||
<TextField fx:id="tfName" GridPane.columnIndex="1" GridPane.rowIndex="1"/> | ||
<TextField fx:id="tfWohnort" GridPane.columnIndex="1" GridPane.rowIndex="2"/> | ||
<Label text="Name:" GridPane.rowIndex="1" /> | ||
<Label text="ID:" /> | ||
<Label text="Wohnort:" GridPane.rowIndex="2" /> | ||
<TextField fx:id="tfID" GridPane.columnIndex="1" /> | ||
<TextField fx:id="tfName" GridPane.columnIndex="1" GridPane.rowIndex="1" /> | ||
<TextField fx:id="tfWohnort" GridPane.columnIndex="1" GridPane.rowIndex="2" /> | ||
</children> | ||
</GridPane> | ||
<HBox alignment="CENTER_RIGHT"> | ||
<children> | ||
<Button fx:id="btSubmit" mnemonicParsing="false" onAction="#btSubmitOnAction" text="Einfügen"/> | ||
<Button fx:id="btSubmit" mnemonicParsing="false" onAction="#btSubmitOnAction" text="Einfügen" /> | ||
</children> | ||
</HBox> | ||
<TableView fx:id="tvList" prefHeight="200.0" prefWidth="200.0"> | ||
<columns> | ||
<TableColumn fx:id="idColumn" prefWidth="75.0" text="ID"/> | ||
<TableColumn fx:id="nameColumn" prefWidth="75.0" text="Name"/> | ||
<TableColumn fx:id="wohnortColumn" prefWidth="75.0" text="Wohnort"/> | ||
<TableColumn fx:id="idColumn" prefWidth="75.0" text="ID" /> | ||
<TableColumn fx:id="nameColumn" prefWidth="75.0" text="Name" /> | ||
<TableColumn fx:id="wohnortColumn" prefWidth="75.0" text="Wohnort" /> | ||
</columns> | ||
</TableView> | ||
<Text text="Copyright© Matthias Kroiss & Christian Trinh, all rights reserved" /> | ||
</children> | ||
<padding> | ||
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/> | ||
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" /> | ||
</padding> | ||
</VBox> |