diff --git a/src/main/java/de/hs_mannheim/ui/Main.java b/src/main/java/de/hs_mannheim/ui/Main.java index 0e21b87..d678e19 100644 --- a/src/main/java/de/hs_mannheim/ui/Main.java +++ b/src/main/java/de/hs_mannheim/ui/Main.java @@ -9,11 +9,9 @@ import javax.swing.JLabel; import javax.swing.JPanel; public class Main extends JFrame { - public static void main(String[] args) { - + Main main = new Main("35a75437476f12302f72e55d368485db"); } - private Application facade; private JFrame jframe; @@ -46,5 +44,134 @@ public class Main extends JFrame { private JButton searchConfirmButton; private JButton threeRandomDestinationsButton; private JButton logOutButton; -} + public Main(String api_key) { + this.facade = new Application(api_key); + initialize(); + } + + public void initialize() { + jframe = new JFrame(); + cardLayout = new CardLayout(); + panelLayout = new JPanel(cardLayout); + panelLayout.setLayout(cardLayout); + jframe.setDefaultCloseOperation(DISPOSE_ON_CLOSE); + + logRegScreen = new JPanel(new BorderLayout()); + loginButtonCreate(); + registerButtonCreate(); + + loginScreen = new JPanel(new BorderLayout()); + loginNameCreate(); + loginPasswortCreate(); + loginConfirmButtonCreate(); + + registerScreenCreate(); + registerNameCreate(); + registerPasswortCreate(); + registerOrtCreate(); + registerPLZCreate(); + registerCarSpeed(); + registerBikeSpeed(); + registerConfirmButton(); + + menu = new JPanel(new BorderLayout()); + searchPLZCreate(); + searchOrtCreate(); + searchConfirmButton(); + threeRandomDestinationsButtonCreate(); + logOutButtonCreate(); + + } + + private void loginButtonCreate() { + // TODO Auto-generated method stub + + } + + private void registerButtonCreate() { + // TODO Auto-generated method stub + + } + + private void loginNameCreate() { + // TODO Auto-generated method stub + + } + + private void loginPasswortCreate() { + // TODO Auto-generated method stub + + } + + private void loginConfirmButtonCreate() { + // TODO Auto-generated method stub + + } + + private void registerScreenCreate() { + // TODO Auto-generated method stub + + } + + private void registerNameCreate() { + // TODO Auto-generated method stub + + } + + private void registerPasswortCreate() { + // TODO Auto-generated method stub + + } + + private void registerOrtCreate() { + // TODO Auto-generated method stub + + } + + private void registerPLZCreate() { + // TODO Auto-generated method stub + + } + + private void registerCarSpeed() { + // TODO Auto-generated method stub + + } + + private void registerBikeSpeed() { + // TODO Auto-generated method stub + + } + + private void registerConfirmButton() { + // TODO Auto-generated method stub + + } + + private void searchPLZCreate() { + // TODO Auto-generated method stub + + } + + private void searchOrtCreate() { + // TODO Auto-generated method stub + + } + + private void searchConfirmButton() { + // TODO Auto-generated method stub + + } + + private void threeRandomDestinationsButtonCreate() { + // TODO Auto-generated method stub + + } + + private void logOutButtonCreate() { + // TODO Auto-generated method stub + + } + +} \ No newline at end of file