public JFrameMain() {
		frame.setResizable(false);

		frame.add(new TabController(), BorderLayout.CENTER);
		frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
		frame.addWindowListener(new java.awt.event.WindowAdapter() {
			@Override
			public void windowClosing(WindowEvent windowEvent) {
				if (running) {
					if (JOptionPane
							.showConfirmDialog(
									frame,
									"Are you sure? Quitting will cause server to crash!",
									"Really Closing?",
									JOptionPane.OK_CANCEL_OPTION,
									JOptionPane.WARNING_MESSAGE) == JOptionPane.OK_OPTION) {
						if (proc != null) {
							proc.destroy();
						}
						System.exit(0);
					}
				} else if (download) {
					if (JOptionPane
							.showConfirmDialog(
									frame,
									"Are you sure? Quitting will cause the current download to stop and become corrupt",
									"Really Closing?",
									JOptionPane.OK_CANCEL_OPTION,
									JOptionPane.WARNING_MESSAGE) == JOptionPane.OK_OPTION) {
						if (proc != null) {
							proc.destroy();
						}
						System.exit(0);
					}
				} else {
					System.exit(0);
				}
			}
		});
		frame.setSize(916, 512);
		frame.setVisible(true);

	}