RRRRHHHH_Code
Diff Revisions
34bf26 ...
vs
32ba0e ...
for ruralHouses client/src/gui/DeleteOwnerGUI.java
|
@@ -19,7 +19,7 @@ |
19 |
19 |
|
import javax.swing.table.DefaultTableModel; |
20 |
20 |
|
|
21 |
21 |
|
import common.AccountInterface; |
22 |
|
- |
import common.OwnerInterface; |
|
22 |
+ |
import common.AdminInterface; |
23 |
23 |
|
|
24 |
24 |
|
import configuration.___IntNames; |
25 |
25 |
|
import domain.Owner; |
|
@@ -34,7 +34,7 @@ |
34 |
34 |
|
private JTable table; |
35 |
35 |
|
|
36 |
36 |
|
private DefaultTableModel tableModel; |
37 |
|
- |
private OwnerInterface Own = null; |
|
37 |
+ |
private AdminInterface AdM = null; |
38 |
38 |
|
private Vector<Owner> owners = new Vector<Owner>(); |
39 |
39 |
|
|
40 |
40 |
|
/** |
|
@@ -56,14 +56,14 @@ |
56 |
56 |
|
setContentPane(contentPane); |
57 |
57 |
|
contentPane.setLayout(null); |
58 |
58 |
|
try { |
59 |
|
- |
Own = (OwnerInterface) Naming |
60 |
|
- |
.lookup(___IntNames.OwnerManager); |
|
59 |
+ |
AdM = (AdminInterface) Naming |
|
60 |
+ |
.lookup(___IntNames.AdminManager); |
61 |
61 |
|
} catch (Exception e1) { |
62 |
62 |
|
System.out |
63 |
63 |
|
.println("Error accessing remote authentication: " |
64 |
64 |
|
+ e1.toString()); |
65 |
65 |
|
} |
66 |
|
- |
this.owners = Own.getOwners(); |
|
66 |
+ |
this.owners = AdM.getAllOwners(); |
67 |
67 |
|
JLabel lblNewLabel = new JLabel(); |
68 |
68 |
|
lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 27)); |
69 |
69 |
|
lblNewLabel.setBounds(23, 41, 536, 33); |