Skip to content

Commit

Permalink
updated Doku
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasKroiss committed Feb 7, 2023
1 parent 1fae5cb commit ca2b97a
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 20 deletions.
9 changes: 8 additions & 1 deletion README.md
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.
10 changes: 10 additions & 0 deletions src/main/java/com/example/databasejavafx/Person.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
/* 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.*/


package com.example.databasejavafx;

import javafx.beans.property.IntegerProperty;
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/com/example/databasejavafx/PersonC.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/* 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.*/

package com.example.databasejavafx;


Expand Down
9 changes: 9 additions & 0 deletions src/main/java/model/SqlDatabase.java
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/* 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.*/

package model;

import com.example.databasejavafx.Person;
Expand Down
40 changes: 21 additions & 19 deletions src/main/resources/com/example/databasejavafx/insertWindow.fxml
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 &amp; 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>

0 comments on commit ca2b97a

Please sign in to comment.