RRRRHHHH_Code
Diff Revisions
1cf395 ...
vs
08aaf3 ...
for ruralHouses client/src/gui/StartWindow.java
|
@@ -19,7 +19,6 @@ |
19 |
19 |
|
import javax.swing.SwingConstants; |
20 |
20 |
|
import javax.swing.UIManager; |
21 |
21 |
|
|
22 |
|
- |
import configuration.ConfigXML; |
23 |
22 |
|
|
24 |
23 |
|
@SuppressWarnings("deprecation") |
25 |
24 |
|
public class StartWindow extends JFrame { |
|
@@ -29,7 +28,6 @@ |
29 |
28 |
|
private JPanel jContentPane = null; |
30 |
29 |
|
private JButton boton2 = null; |
31 |
30 |
|
private JButton boton3 = null; |
32 |
|
- |
private static configuration.ConfigXML c; |
33 |
31 |
|
private JLabel lblNewLabel; |
34 |
32 |
|
|
35 |
33 |
|
public static void main(String[] args) { |
|
@@ -42,16 +40,12 @@ |
42 |
40 |
|
|
43 |
41 |
|
try { |
44 |
42 |
|
|
45 |
|
- |
c = ConfigXML.getInstance(); |
46 |
|
- |
|
47 |
|
- |
System.setProperty("java.security.policy", c.getJavaPolicyPath()); |
|
43 |
+ |
System.setProperty("java.security.policy", "java.policy"); |
48 |
44 |
|
|
49 |
45 |
|
System.setSecurityManager(new RMISecurityManager()); |
50 |
46 |
|
|
51 |
47 |
|
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); |
52 |
48 |
|
|
53 |
|
- |
c = configuration.ConfigXML.getInstance(); |
54 |
|
- |
|
55 |
49 |
|
} catch (com.db4o.ext.DatabaseFileLockedException e) { |
56 |
50 |
|
a.lblNewLabel |
57 |
51 |
|
.setText("Database locked: Do not run BusinessLogicServer or BusinessLogicServer!!"); |