-
Notifications
You must be signed in to change notification settings - Fork 0
/
Windows.java
22 lines (18 loc) · 1.04 KB
/
Windows.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import javax.swing.*;
import java.util.ArrayList;
// Super class called Windows from which each window of the application inherits. This class extends JPanel as well.
public class Windows extends JPanel{
// the database containing all the Airbnb properties of London and their information.
protected final ArrayList<AirbnbListing> database;
// List of all the boroughs of London.
protected static final String[] BOROUGHS = {"Kingston upon Thames","Croydon","Bromley","Hounslow","Ealing","Havering",
"Hillingdon","Harrow","Brent","Barnet", "Enfield", "Waltham Forest", "Redbridge", "Sutton", "Lambeth", "Southwark",
"Lewisham", "Greenwich", "Bexley", "Richmond upon Thames", "Merton", "Wandsworth","Hammersmith and Fulham",
"Kensington and Chelsea","City of London","Westminster","Camden","Tower Hamlets", "Islington", "Hackney","Haringey",
"Newham","Barking and Dagenham"};
public Windows()
{
AirbnbDataLoader dl = new AirbnbDataLoader();
database = dl.load();
}
}