TODO Methods generated, initialize method preplaned, constructor implemented

gui
David Groys 2024-06-10 14:53:23 +02:00
parent 30d805e17d
commit 4a3c4dbcea
1 changed files with 131 additions and 4 deletions

View File

@ -9,11 +9,9 @@ import javax.swing.JLabel;
import javax.swing.JPanel; import javax.swing.JPanel;
public class Main extends JFrame { public class Main extends JFrame {
public static void main(String[] args) { public static void main(String[] args) {
Main main = new Main("35a75437476f12302f72e55d368485db");
} }
private Application facade; private Application facade;
private JFrame jframe; private JFrame jframe;
@ -46,5 +44,134 @@ public class Main extends JFrame {
private JButton searchConfirmButton; private JButton searchConfirmButton;
private JButton threeRandomDestinationsButton; private JButton threeRandomDestinationsButton;
private JButton logOutButton; 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
}
}