X-Git-Url: https://xp-dev.com/git/RRRRHHHH_Code/blobdiff_plain/d5b8431efc2833ae0745e3648c220332458c73bc..837fabde9ab10424dd05d5530c650a7797bc21ef:/ruralHouses/src/gui/StartWindow.java diff --git a/ruralHouses/src/gui/StartWindow.java b/ruralHouses/src/gui/StartWindow.java index 842b818..663369b 100644 --- a/ruralHouses/src/gui/StartWindow.java +++ b/ruralHouses/src/gui/StartWindow.java @@ -17,7 +17,6 @@ import javax.swing.SwingConstants; import javax.swing.UIManager; import configuration.ConfigXML; -import domain.Administrator; public class StartWindow extends JFrame { @@ -48,30 +47,9 @@ public class StartWindow extends JFrame { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); c=configuration.ConfigXML.getInstance(); - if (c.isBusinessLogicLocal()){ - //facadeInterface=new FacadeImplementation(); - } - else { - - final String businessLogicNode = c.getBusinessLogicNode(); - // Remote service name - String serviceName = "/"+c.getServiceRMI(); - // RMI server port number - int portNumber = Integer.parseInt(c.getPortRMI()); - // RMI server host IP IP - /*facadeInterface = (ApplicationFacadeInterface) Naming.lookup("rmi://" - + businessLogicNode + ":" + portNumber + serviceName);*/ - } - - }/* catch (java.rmi.ConnectException e) { - a.lblNewLabel.setText("No business logic: Run BusinessLogicServer first!!"); - a.lblNewLabel.setForeground(Color.RED); - System.out.println("Error in StartWindow: "+e.toString()); - } catch (java.rmi.NotBoundException e) { - a.lblNewLabel.setText("No business logic: Maybe problems running BusinessLogicServer"); - a.lblNewLabel.setForeground(Color.RED); - System.out.println("Error in StartWindow: "+e.toString()); - } */catch (com.db4o.ext.DatabaseFileLockedException e) { + + + }catch (com.db4o.ext.DatabaseFileLockedException e) { a.lblNewLabel.setText("Database locked: Do not run BusinessLogicServer or BusinessLogicServer!!"); a.lblNewLabel.setForeground(Color.RED); System.out.println("Error in StartWindow: "+e.toString());