Git Repository Public Repository

RRRRHHHH_Code

URLs

Copy to Clipboard

Diff Revisions 2ac167 ... vs 837fab ... for ruralHouses/src/gui/StartWindow.java

Diff revisions: vs.
  @@ -17,7 +17,6 @@
17 17 import javax.swing.UIManager;
18 18
19 19 import configuration.ConfigXML;
20 - import domain.Administrator;
21 20
22 21
23 22 public class StartWindow extends JFrame {
  @@ -48,30 +47,9 @@
48 47 UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
49 48
50 49 c=configuration.ConfigXML.getInstance();
51 - if (c.isBusinessLogicLocal()){
52 - //facadeInterface=new FacadeImplementation();
53 - }
54 - else {
55 -
56 - final String businessLogicNode = c.getBusinessLogicNode();
57 - // Remote service name
58 - String serviceName = "/"+c.getServiceRMI();
59 - // RMI server port number
60 - int portNumber = Integer.parseInt(c.getPortRMI());
61 - // RMI server host IP IP
62 - /*facadeInterface = (ApplicationFacadeInterface) Naming.lookup("rmi://"
63 - + businessLogicNode + ":" + portNumber + serviceName);*/
64 - }
65 -
66 - }/* catch (java.rmi.ConnectException e) {
67 - a.lblNewLabel.setText("No business logic: Run BusinessLogicServer first!!");
68 - a.lblNewLabel.setForeground(Color.RED);
69 - System.out.println("Error in StartWindow: "+e.toString());
70 - } catch (java.rmi.NotBoundException e) {
71 - a.lblNewLabel.setText("No business logic: Maybe problems running BusinessLogicServer");
72 - a.lblNewLabel.setForeground(Color.RED);
73 - System.out.println("Error in StartWindow: "+e.toString());
74 - } */catch (com.db4o.ext.DatabaseFileLockedException e) {
50 +
51 +
52 + }catch (com.db4o.ext.DatabaseFileLockedException e) {
75 53 a.lblNewLabel.setText("Database locked: Do not run BusinessLogicServer or BusinessLogicServer!!");
76 54 a.lblNewLabel.setForeground(Color.RED);
77 55 System.out.println("Error in StartWindow: "+e.toString());