AHHHHHHHHHH COMMITED TO GITHUB INSTEAD OF FORGEJO FOR WEEKS
This commit is contained in:
parent
d6ef44f3d1
commit
0919005cb2
163 changed files with 3875 additions and 47 deletions
3
Code/ost/_10_steuerrechner/.vscode/settings.json
vendored
Normal file
3
Code/ost/_10_steuerrechner/.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"java.completion.chain.enabled": true
|
||||
}
|
|
@ -18,6 +18,7 @@ public class App extends Application {
|
|||
@Override
|
||||
public void start(Stage stage) throws IOException {
|
||||
scene = new Scene(loadFXML("primary"), 640, 480);
|
||||
scene.getStylesheets().add(getClass().getResource("styles.css").toExternalForm());
|
||||
stage.setScene(scene);
|
||||
stage.show();
|
||||
}
|
||||
|
|
|
@ -2,15 +2,15 @@
|
|||
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.TextField?>
|
||||
<?import javafx.scene.layout.ColumnConstraints?>
|
||||
<?import javafx.scene.layout.GridPane?>
|
||||
<?import javafx.scene.layout.HBox?>
|
||||
<?import javafx.scene.layout.RowConstraints?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import javafx.scene.text.Text?>
|
||||
|
||||
<GridPane alignment="CENTER" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/23.0.1" fx:controller="com.example.PrimaryController">
|
||||
<GridPane id="background" alignment="CENTER" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.PrimaryController">
|
||||
<columnConstraints>
|
||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
||||
|
@ -21,49 +21,37 @@
|
|||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||
</rowConstraints>
|
||||
<children>
|
||||
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Netto" wrappingWidth="90.13000106811523">
|
||||
<GridPane.margin>
|
||||
<Insets left="20.0" />
|
||||
</GridPane.margin>
|
||||
</Text>
|
||||
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Umsatzsteuer" GridPane.rowIndex="1">
|
||||
<GridPane.margin>
|
||||
<Insets left="20.0" />
|
||||
</GridPane.margin>
|
||||
</Text>
|
||||
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Brutto" GridPane.rowIndex="2">
|
||||
<GridPane.margin>
|
||||
<Insets left="20.0" />
|
||||
</GridPane.margin>
|
||||
</Text>
|
||||
<TextField fx:id="inpNetto" promptText="Wert eingeben" GridPane.columnIndex="1">
|
||||
<TextField id="netto" fx:id="inpNetto" promptText="Wert eingeben" GridPane.columnIndex="1">
|
||||
<GridPane.margin>
|
||||
<Insets right="20.0" />
|
||||
</GridPane.margin>
|
||||
</TextField>
|
||||
<HBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0" GridPane.columnIndex="1" GridPane.rowIndex="1">
|
||||
<HBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0" stylesheets="@styles.css" GridPane.columnIndex="1" GridPane.rowIndex="1">
|
||||
<children>
|
||||
<TextField fx:id="inpTax" promptText="Wert eingeben">
|
||||
<TextField id="tax" fx:id="inpTax" promptText="Wert eingeben">
|
||||
<HBox.margin>
|
||||
<Insets right="20.0" />
|
||||
</HBox.margin>
|
||||
</TextField>
|
||||
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="\%" />
|
||||
<Label styleClass="text" text="\%" />
|
||||
</children>
|
||||
</HBox>
|
||||
<VBox alignment="CENTER_LEFT" prefHeight="200.0" prefWidth="100.0" GridPane.columnIndex="1" GridPane.rowIndex="2">
|
||||
<children>
|
||||
<TextField fx:id="outBrutto">
|
||||
<TextField id="brutto" fx:id="outBrutto">
|
||||
<VBox.margin>
|
||||
<Insets right="20.0" top="20.0" />
|
||||
</VBox.margin>
|
||||
</TextField>
|
||||
<Button mnemonicParsing="false" text="Berechnen">
|
||||
<Button id="btn" mnemonicParsing="false" text="Berechnen">
|
||||
<VBox.margin>
|
||||
<Insets top="20.0" />
|
||||
</VBox.margin>
|
||||
</Button>
|
||||
</children>
|
||||
</VBox>
|
||||
<Label styleClass="text" text="Netto" textFill="WHITE" />
|
||||
<Label styleClass="text" text="Umsatzsteuer" GridPane.rowIndex="1" />
|
||||
<Label styleClass="text" text="Brutto" GridPane.rowIndex="2" />
|
||||
</children>
|
||||
</GridPane>
|
||||
|
|
|
@ -0,0 +1,49 @@
|
|||
#background {
|
||||
-fx-background-color: linear-gradient(to bottom, #2E2E2E, #1C1C1C); /* Gradient background */
|
||||
-fx-padding: 20px;
|
||||
}
|
||||
|
||||
.text {
|
||||
-fx-text-fill: #FFFFFF;
|
||||
-fx-font-size: 16px;
|
||||
-fx-font-family: "Segoe UI", sans-serif;
|
||||
-fx-font-weight: bold;
|
||||
}
|
||||
|
||||
.text-field {
|
||||
-fx-background-color: rgba(255, 255, 255, 0.1); /* Transparent look */
|
||||
-fx-text-fill: #FFFFFF;
|
||||
-fx-border-color: transparent;
|
||||
-fx-border-radius: 10px;
|
||||
-fx-background-radius: 10px;
|
||||
-fx-padding: 10px;
|
||||
-fx-effect: dropshadow(gaussian, rgba(0, 0, 0, 0.5), 5, 0.3, 0, 1); /* Shadow inside */
|
||||
}
|
||||
|
||||
.text-field:focused {
|
||||
-fx-border-color: #00D8FF; /* Neon glow effect */
|
||||
-fx-border-width: 2px;
|
||||
}
|
||||
|
||||
.button {
|
||||
-fx-background-color: linear-gradient(to bottom, #444444, #222222);
|
||||
-fx-text-fill: #FFFFFF;
|
||||
-fx-background-radius: 10px;
|
||||
-fx-padding: 10px 20px;
|
||||
-fx-effect: dropshadow(gaussian, rgba(0, 0, 0, 0.5), 8, 0.4, 0, 2); /* Subtle shadow */
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
-fx-background-color: #00D8FF; /* Glowing hover effect */
|
||||
-fx-text-fill: #000000;
|
||||
}
|
||||
|
||||
.button:pressed {
|
||||
-fx-background-color: #007ACC; /* Darker glow */
|
||||
-fx-effect: none;
|
||||
}
|
||||
|
||||
.label {
|
||||
-fx-font-size: 14px;
|
||||
-fx-font-family: "Segoe UI", sans-serif;
|
||||
}
|
Binary file not shown.
|
@ -2,15 +2,15 @@
|
|||
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.Button?>
|
||||
<?import javafx.scene.control.Label?>
|
||||
<?import javafx.scene.control.TextField?>
|
||||
<?import javafx.scene.layout.ColumnConstraints?>
|
||||
<?import javafx.scene.layout.GridPane?>
|
||||
<?import javafx.scene.layout.HBox?>
|
||||
<?import javafx.scene.layout.RowConstraints?>
|
||||
<?import javafx.scene.layout.VBox?>
|
||||
<?import javafx.scene.text.Text?>
|
||||
|
||||
<GridPane alignment="CENTER" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns:fx="http://javafx.com/fxml/1" xmlns="http://javafx.com/javafx/23.0.1" fx:controller="com.example.PrimaryController">
|
||||
<GridPane id="background" alignment="CENTER" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="400.0" prefWidth="600.0" xmlns="http://javafx.com/javafx/23.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.PrimaryController">
|
||||
<columnConstraints>
|
||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
||||
<ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" />
|
||||
|
@ -21,49 +21,37 @@
|
|||
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
|
||||
</rowConstraints>
|
||||
<children>
|
||||
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Netto" wrappingWidth="90.13000106811523">
|
||||
<GridPane.margin>
|
||||
<Insets left="20.0" />
|
||||
</GridPane.margin>
|
||||
</Text>
|
||||
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Umsatzsteuer" GridPane.rowIndex="1">
|
||||
<GridPane.margin>
|
||||
<Insets left="20.0" />
|
||||
</GridPane.margin>
|
||||
</Text>
|
||||
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="Brutto" GridPane.rowIndex="2">
|
||||
<GridPane.margin>
|
||||
<Insets left="20.0" />
|
||||
</GridPane.margin>
|
||||
</Text>
|
||||
<TextField fx:id="inpNetto" promptText="Wert eingeben" GridPane.columnIndex="1">
|
||||
<TextField id="netto" fx:id="inpNetto" promptText="Wert eingeben" GridPane.columnIndex="1">
|
||||
<GridPane.margin>
|
||||
<Insets right="20.0" />
|
||||
</GridPane.margin>
|
||||
</TextField>
|
||||
<HBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0" GridPane.columnIndex="1" GridPane.rowIndex="1">
|
||||
<HBox alignment="CENTER_LEFT" prefHeight="100.0" prefWidth="200.0" stylesheets="@styles.css" GridPane.columnIndex="1" GridPane.rowIndex="1">
|
||||
<children>
|
||||
<TextField fx:id="inpTax" promptText="Wert eingeben">
|
||||
<TextField id="tax" fx:id="inpTax" promptText="Wert eingeben">
|
||||
<HBox.margin>
|
||||
<Insets right="20.0" />
|
||||
</HBox.margin>
|
||||
</TextField>
|
||||
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="\%" />
|
||||
<Label styleClass="text" text="\%" />
|
||||
</children>
|
||||
</HBox>
|
||||
<VBox alignment="CENTER_LEFT" prefHeight="200.0" prefWidth="100.0" GridPane.columnIndex="1" GridPane.rowIndex="2">
|
||||
<children>
|
||||
<TextField fx:id="outBrutto">
|
||||
<TextField id="brutto" fx:id="outBrutto">
|
||||
<VBox.margin>
|
||||
<Insets right="20.0" top="20.0" />
|
||||
</VBox.margin>
|
||||
</TextField>
|
||||
<Button mnemonicParsing="false" text="Berechnen">
|
||||
<Button id="btn" mnemonicParsing="false" text="Berechnen">
|
||||
<VBox.margin>
|
||||
<Insets top="20.0" />
|
||||
</VBox.margin>
|
||||
</Button>
|
||||
</children>
|
||||
</VBox>
|
||||
<Label styleClass="text" text="Netto" textFill="WHITE" />
|
||||
<Label styleClass="text" text="Umsatzsteuer" GridPane.rowIndex="1" />
|
||||
<Label styleClass="text" text="Brutto" GridPane.rowIndex="2" />
|
||||
</children>
|
||||
</GridPane>
|
||||
|
|
|
@ -0,0 +1,49 @@
|
|||
#background {
|
||||
-fx-background-color: linear-gradient(to bottom, #2E2E2E, #1C1C1C); /* Gradient background */
|
||||
-fx-padding: 20px;
|
||||
}
|
||||
|
||||
.text {
|
||||
-fx-text-fill: #FFFFFF;
|
||||
-fx-font-size: 16px;
|
||||
-fx-font-family: "Segoe UI", sans-serif;
|
||||
-fx-font-weight: bold;
|
||||
}
|
||||
|
||||
.text-field {
|
||||
-fx-background-color: rgba(255, 255, 255, 0.1); /* Transparent look */
|
||||
-fx-text-fill: #FFFFFF;
|
||||
-fx-border-color: transparent;
|
||||
-fx-border-radius: 10px;
|
||||
-fx-background-radius: 10px;
|
||||
-fx-padding: 10px;
|
||||
-fx-effect: dropshadow(gaussian, rgba(0, 0, 0, 0.5), 5, 0.3, 0, 1); /* Shadow inside */
|
||||
}
|
||||
|
||||
.text-field:focused {
|
||||
-fx-border-color: #00D8FF; /* Neon glow effect */
|
||||
-fx-border-width: 2px;
|
||||
}
|
||||
|
||||
.button {
|
||||
-fx-background-color: linear-gradient(to bottom, #444444, #222222);
|
||||
-fx-text-fill: #FFFFFF;
|
||||
-fx-background-radius: 10px;
|
||||
-fx-padding: 10px 20px;
|
||||
-fx-effect: dropshadow(gaussian, rgba(0, 0, 0, 0.5), 8, 0.4, 0, 2); /* Subtle shadow */
|
||||
}
|
||||
|
||||
.button:hover {
|
||||
-fx-background-color: #00D8FF; /* Glowing hover effect */
|
||||
-fx-text-fill: #000000;
|
||||
}
|
||||
|
||||
.button:pressed {
|
||||
-fx-background-color: #007ACC; /* Darker glow */
|
||||
-fx-effect: none;
|
||||
}
|
||||
|
||||
.label {
|
||||
-fx-font-size: 14px;
|
||||
-fx-font-family: "Segoe UI", sans-serif;
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
com/example/SecondaryController.class
|
||||
com/example/App.class
|
||||
module-info.class
|
||||
com/example/PrimaryController.class
|
|
@ -0,0 +1,4 @@
|
|||
/home/sage/Desktop/Programming/IMS-java/Code/ost/_10_steuerrechner/src/main/java/com/example/SecondaryController.java
|
||||
/home/sage/Desktop/Programming/IMS-java/Code/ost/_10_steuerrechner/src/main/java/module-info.java
|
||||
/home/sage/Desktop/Programming/IMS-java/Code/ost/_10_steuerrechner/src/main/java/com/example/PrimaryController.java
|
||||
/home/sage/Desktop/Programming/IMS-java/Code/ost/_10_steuerrechner/src/main/java/com/example/App.java
|
Loading…
Add table
Add a link
Reference in a new issue