diff --git a/bin/application/Main.class b/bin/application/Main.class
index 7e0b408..74c0752 100644
Binary files a/bin/application/Main.class and b/bin/application/Main.class differ
diff --git a/bin/application/MainWindow.fxml b/bin/application/MainWindow.fxml
index 96fcfd8..4639820 100644
--- a/bin/application/MainWindow.fxml
+++ b/bin/application/MainWindow.fxml
@@ -1,6 +1,8 @@
+
+
@@ -23,14 +25,63 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -39,19 +90,19 @@
-
-
-
-
-
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -39,19 +90,19 @@
-
-
-
-
-
+
+
+
+
+
-
+
-
+
@@ -74,7 +125,7 @@
-
+
diff --git a/src/application/MainWindowController.java b/src/application/MainWindowController.java
index 1f56096..f185b20 100644
--- a/src/application/MainWindowController.java
+++ b/src/application/MainWindowController.java
@@ -14,6 +14,7 @@ import javafx.scene.control.TreeTableView;
import javafx.scene.control.TextField;
import javafx.scene.control.TreeItem;
import javafx.scene.control.TitledPane;
+import com.jfoenix.controls.JFXColorPicker;
import java.awt.Desktop;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
@@ -85,6 +86,25 @@ public class MainWindowController
private TreeTableColumn idSpalte02 = new TreeTableColumn<>(
"");
+ @FXML
+ private TreeTableView entryTreeTable;
+
+ @FXML
+ private TreeTableColumn columnColor;
+
+ @FXML
+ private TreeTableColumn columnPrize;
+
+ @FXML
+ private TreeTableColumn columnPositionsEdit;
+
+ @FXML
+ private TreeTableColumn columnPosnumber;
+
+ @FXML
+ private TreeTableColumn idSpalte03 = new TreeTableColumn<>(
+ "");
+
@FXML
private Button ueberbtn;
@@ -181,6 +201,12 @@ public class MainWindowController
@FXML
private Button btnCalcStats;
+ @FXML
+ private Button btnSaveEntry;
+
+ @FXML
+ private Button btnClearEntry;
+
@FXML
private Label labelAllPrize;
@@ -199,9 +225,27 @@ public class MainWindowController
@FXML
private Label lableAllValue;
+ @FXML
+ private Label lableNewPosition;
+
+ @FXML
+ private Label labelNewValue;
+
+ @FXML
+ private Label lableNewColor;
+
@FXML
private TitledPane titlePaneStats;
+ @FXML
+ private TextField tftNewPosition;
+
+ @FXML
+ private TextField tftNewValue;
+
+ @FXML
+ private JFXColorPicker colorChooser;
+
private Main main;
private DBController dbc;
@@ -225,8 +269,8 @@ public class MainWindowController
// Erstellt einen Dialog
Dialog> dialog = new Dialog<>();
- dialog.setTitle("Über PWMaster");
- dialog.setHeaderText("Informationen und Lizenzen - Version 0.5");
+ dialog.setTitle("Über jFxKasse");
+ dialog.setHeaderText("Informationen und Lizenzen - Version 0.7 - UI Techdemo");
// Erzeugt den Button
dialog.getDialogPane().getButtonTypes().addAll(ButtonType.OK);
@@ -238,19 +282,28 @@ public class MainWindowController
grid.setPadding(new Insets(20, 150, 10, 10));
grid.add(new Label("Datenbank: sqlite.org - Public Domain"
- + "\nBASE64Decoder: java2s.com/Code/Jar/s/DownloadsunmiscBASE64Decoderjar.htm - GPLv2"
- + "\nCrypo: blog.axxg.de/ - Copyright 2013 AxxG Alexander Grösel"
- + " \nzwei Faktoren: github.com/j256/two-factor-auth - ISC License"
+ " \nUI Design: eclipse.org/efxclipse/install.html - Eclipse Public License 1.0"
+ " \nUI - Datenbank Integration: basierend auf Project-HomeFlix - github.com/Seil0/Project-HomeFlix - GPLv3 \n"
- + " \nMaintainer: hendrik.schutter@icloud.com"
- + " \n(c) 2017 Hendrik Schutter"), 0, 0);
+ + " \nMaintainer: hendrik.schutter@coptersicht.de"
+ + " \n(c) 2018 Hendrik Schutter"), 0, 0);
dialog.getDialogPane().setContent(grid); // Setzt die GridPane auf die
- // DialogPane
+ dialog.setResizable(true); // DialogPane
dialog.showAndWait();
}
+ @FXML
+ public void btnSaveEntryAction(ActionEvent event)
+ {
+ System.out.println("Button!");
+ }
+
+ @FXML
+ public void btnClearEntryAction(ActionEvent event)
+ {
+ System.out.println("Button!");
+ }
+
@FXML
public void btnCalcStatsAction(ActionEvent event)
{
@@ -442,7 +495,7 @@ public class MainWindowController
public void fuelleTablle()
{ // Lädt die Datenbank in die Tabelle
- //dbc.setSchluessel(schluessel);
+ // dbc.setSchluessel(schluessel);
for (int i = 0; i < dbc.ladeTabelle().size(); i++) {
tableData helpTableData = new tableData(
dbc.ladeTabelle().get(i).getID(),
@@ -477,7 +530,6 @@ public class MainWindowController
int selected = tableCurrentOrder.getSelectionModel()
.getSelectedIndex(); // get selected item
id = idSpalte01.getCellData(selected); // Ausgewählte Spalte
-
try { // Setzt den entschlüsselten Inhalt in die Textfelder
// tf01.setText("Verschlüsseltes Passwort von " +
@@ -554,8 +606,6 @@ public class MainWindowController
}
}
-
-
public void starteDB()
{ // Startet die Datenbank
dbc.verbindeDatenbank();