private void initialize() {
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (UnsupportedLookAndFeelException e2) {
			log.error(e2.getMessage(), e2);
		} catch (InstantiationException e2) {
			log.error(e2.getMessage(), e2);
		} catch (IllegalAccessException e2) {
			log.error(e2.getMessage(), e2);
		} catch (ClassNotFoundException e2) {
			log.error(e2.getMessage(), e2);
		}
		mainFrame = new MainFrame();
		Dimension windowDimension = new Dimension(Prefs.getWindowWidth(), Prefs.getWindowHeight());
		mainFrame.setSize(windowDimension);
		mainFrame.setPreferredSize(windowDimension);

		mainFrame.setName("mainFrame");
		mainFrame.setTitle("eBay Master");
		mainFrame.setBackground(Color.WHITE);
		mainFrame.setDefaultCloseOperation(Prefs.isExitToTray() ? 1 : Prefs.isConfirmationOnExit() ? 0 : 3);
		mainFrame.setVisible(true);
		mainFrame.setExtendedState(mainFrame.getExtendedState() | (Prefs.isStartMaximized() ? 6 : 0));
		mainFrame.setExitToSystemTray();
		mainFrame.setCloseOperation();
	}