public void loadDialog(){

		JFileChooser fileChooser = new JFileChooser();
		if (fileChooser.showOpenDialog(getComponent(0)) == JFileChooser.APPROVE_OPTION) {
			file = fileChooser.getSelectedFile();
			// load from file
		}
	}