public FileUI()
	{
		
		super();
		
		manager = new FileManager();
		
		// load proeprties
		Properties props = new Properties();
		
		try {
			props.load(new FileInputStream("config.properties"));
			System.out.println(props.getProperty("def.folder.location"));
		} catch (IOException e) {
			e.printStackTrace();
		}
		
		this.setTitle("Download File Manager");
		this.getContentPane().setLayout(new FlowLayout());
		
		searchLabel = new JLabel("Path");
		totalLabel = new JLabel("Total -");
		
		browse = new JFileChooser();
		browse.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);
		browse.setMultiSelectionEnabled(false);
		
		browseFileSystem = new JButton("Browse");
		browseFileSystem.setToolTipText("Browse");
		browseFileSystem.setActionCommand("BROWSE");
		browseFileSystem.addActionListener(this);
		
		searchButton = new JButton("Search");
		searchButton.setToolTipText("Search");
		searchButton.setActionCommand("SEARCH");
		searchButton.addActionListener(this);
		//searchButton.setEnabled(false); -- DEBUG
		
		aboutButton = new JButton("About");
		aboutButton.setToolTipText("About");
		aboutButton.setActionCommand("ABOUT");
		aboutButton.addActionListener(this);
		
		exitButton = new JButton("Exit");
		exitButton.setToolTipText("Exit");
		exitButton.setActionCommand("EXIT");
		exitButton.addActionListener(this);
		
		fileLoc = new JTextField();
		fileLoc.setText(props.getProperty("def.folder.location"));
		fileLoc.setToolTipText("Press the browse button to find a folder");
		
		 // formatting
		fileLoc.setLocation(100, 15);
		fileLoc.setSize(350, 30);
		browseFileSystem.setLocation(20, 50);
		browseFileSystem.setSize(100, 30);
		searchButton.setLocation(130, 50);
		searchButton.setSize(100, 30);
		searchLabel.setLocation(25, 15);
		searchLabel.setSize(80, 30);
		totalLabel.setLocation(25, 780);
		totalLabel.setSize(350, 20);
		exitButton.setSize(100, 30);
		exitButton.setLocation(240, 50);
		aboutButton.setSize(100, 30);
		aboutButton.setLocation(350, 50);
		
		totalLabel.setVisible(false);
		
		content = this.getContentPane();
		
		content.add(fileLoc);
		content.add(browseFileSystem);
		content.add(searchButton);
		content.add(searchLabel);
		content.add(totalLabel);
		content.add(exitButton);
		content.add(aboutButton);
		
		this.setLayout(null);
		this.setSize(510, 830);
		this.setVisible(true);
		this.setResizable(false);
		
		this.addWindowListener(new WindowAdapter(){
			public void windowClosing(WindowEvent e) {
				System.exit(0);
			}
		});
		
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		}
		catch (Exception e) {
			e.printStackTrace();
		}
		
	}