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