RRRRHHHH_Code
Diff Revisions
e3043c ...
vs
b09f34 ...
for ruralHouses client/src/gui/listOfOffers.java
|
@@ -20,6 +20,7 @@ |
20 |
20 |
|
|
21 |
21 |
|
import domain.Offer; |
22 |
22 |
|
import domain.Owner; |
|
23 |
+ |
import domain.RuralHouse; |
23 |
24 |
|
|
24 |
25 |
|
public class listOfOffers extends JFrame { |
25 |
26 |
|
|
|
@@ -54,8 +55,10 @@ |
54 |
55 |
|
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); |
55 |
56 |
|
setContentPane(contentPane); |
56 |
57 |
|
contentPane.setLayout(null); |
57 |
|
- |
|
58 |
|
- |
this.offers = this.owner.getAllOffers(); |
|
58 |
+ |
this.offers = new Vector<Offer>(); |
|
59 |
+ |
for (RuralHouse rh: this.owner.getRuralHouses()){ |
|
60 |
+ |
this.offers.addAll(rh.getAllOffers()); |
|
61 |
+ |
} |
59 |
62 |
|
JLabel lblNewLabel = new JLabel(); |
60 |
63 |
|
lblNewLabel.setFont(new Font("Tahoma", Font.PLAIN, 27)); |
61 |
64 |
|
lblNewLabel.setBounds(23, 41, 536, 33); |