From 30d805e17dab563aa8d2da82f0d374d616674946 Mon Sep 17 00:00:00 2001 From: David Groys Date: Mon, 10 Jun 2024 14:12:33 +0200 Subject: [PATCH] initial GUI --- src/main/java/de/hs_mannheim/ui/Main.java | 48 ++++++++++++++++++++++- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/hs_mannheim/ui/Main.java b/src/main/java/de/hs_mannheim/ui/Main.java index 69779b1..0e21b87 100644 --- a/src/main/java/de/hs_mannheim/ui/Main.java +++ b/src/main/java/de/hs_mannheim/ui/Main.java @@ -1,6 +1,50 @@ package de.hs_mannheim.ui; -public class Main { +import de.hs_mannheim.facade.Application; + +import java.awt.*; +import javax.swing.JButton; +import javax.swing.JFrame; +import javax.swing.JLabel; +import javax.swing.JPanel; + +public class Main extends JFrame { + public static void main(String[] args) { + } -} \ No newline at end of file + + private Application facade; + + private JFrame jframe; + private CardLayout cardLayout; + private JPanel panelLayout; + + private JPanel logRegScreen; + private JButton loginButton; + private JButton registerButton; + + private JPanel loginScreen; + private JPanel loginName; + private JPanel loginPassword; + private JButton loginConfirmButton; + + private JPanel registerScreen; // Backend muss PLZ und Ort prüfen, sonst kann die Entfernung in Zukunft nicht + // berechnet werden + private JPanel registerName; + private JPanel registerPassword; + private JPanel registerOrt; + private JPanel registerPLZ; + private JPanel registerCarSpeed; + private JPanel registerBikeSpeed; + private JButton registerConfirmButton; + private JLabel errorMessage; // mal gucken, vllt auch nicht + + private JPanel menu; + private JPanel searchPLZ; + private JPanel searchOrt; + private JButton searchConfirmButton; + private JButton threeRandomDestinationsButton; + private JButton logOutButton; +} +