Git Repository Public Repository

RRRRHHHH_Code

URLs

Copy to Clipboard

Diff Revisions 2ac167 ... vs 46d6c3 ... for ruralHouses/src/gui/listOfAdditionRequestsGUI.java

Diff revisions: vs.
  @@ -33,6 +33,7 @@
33 33 * Create the frame.
34 34 */
35 35 public listOfAdditionRequestsGUI() {
36 + setTitle("Adding requests");
36 37 try {
37 38 this.houses= am.getAdditionRequests();
38 39 init();
  @@ -53,9 +54,9 @@
53 54 lblNewLabel.setBounds(23, 41, 536, 33);
54 55 contentPane.add(lblNewLabel);
55 56 if (houses.isEmpty())
56 - lblNewLabel.setText("There are not houses matching your search");
57 + lblNewLabel.setText("There are not houses to be added");
57 58 else
58 - lblNewLabel.setText("List of houses that match your search:");
59 + lblNewLabel.setText("List of houses to be added:");
59 60 JScrollPane scrollPane = new JScrollPane();
60 61 scrollPane.setBounds(new Rectangle(45, 305, 320, 116));
61 62 scrollPane.setBounds(23, 113, 536, 271);
  @@ -88,6 +89,7 @@
88 89 houses.remove(rh);
89 90 am.removeHouseAdditionRequests(rh);
90 91 Administrator.saveInstance();
92 + ((DefaultTableModel)table.getModel()).removeRow(houses.indexOf(rh));
91 93 }
92 94 }
93 95 });