Git Repository Public Repository

RRRRHHHH_Code

URLs

Copy to Clipboard

Diff Revisions ccac99 ... vs 3a0296 ... for ruralHouses client/src/gui/listOfBookingRequestsGUI.java

Diff revisions: vs.
  @@ -22,7 +22,8 @@
22 22 import javax.swing.table.DefaultTableModel;
23 23
24 24 import common.BookingInterface;
25 -
25 + import common.HouseInterface;
26 + import common.OfferInterface;
26 27 import configuration.___IntNames;
27 28 import domain.Booking;
28 29 import domain.Offer;
  @@ -62,7 +63,22 @@
62 63 setContentPane(contentPane);
63 64 contentPane.setLayout(null);
64 65
65 - this.bookings = this.off.getBookings();
66 + BookingInterface bm = null;
67 +
68 + try {
69 + bm = (BookingInterface) Naming
70 + .lookup(___IntNames.BookingManager);
71 +
72 + } catch (Exception e1) {
73 + System.out.println("Error accessing remote authentication: "
74 + + e1.toString());
75 + }
76 + try {
77 + this.bookings = bm.getOffersbookings(this.off);
78 + } catch (RemoteException e1) {
79 + e1.printStackTrace();
80 + }
81 +
66 82 JLabel lblNewLabel = new JLabel();
67 83 lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 27));
68 84 lblNewLabel.setBounds(23, 41, 536, 33);