package gui;
import javax.swing.*;
+
import java.awt.*;
+import java.awt.event.WindowAdapter;
+import java.awt.event.WindowEvent;
import businessLogic.FacadeImplementation;
import businessLogic.ApplicationFacadeInterface;
import java.rmi.*;
+
import configuration.Config;
public class StartWindow extends JFrame {
createOfferButton.setAlignmentX(Component.CENTER_ALIGNMENT);
createOfferButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent e) {
- JFrame a = new IntroduceOfferGUI();
+ JFrame a = new LoginGUI();
a.setVisible(true);
}
});
//JFrame a = new QueryAvailabilityWindow();
ApplicationFacadeInterface facade=StartWindow.facadeInterface;
try {
- facade.close();
+
setVisible(false);
+ System.exit(1);
}
- catch (RemoteException e1) {
+ catch (Exception e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
//System.out.println(e.toString());
e.printStackTrace();
}
- int x=0;
JFrame a = new StartWindow();
a.setVisible(true);
}