public static void disableControls(Component comp) {
		if (comp instanceof Container) {
			Container container = (Container) comp;
			int count = container.getComponentCount();

			for (int i = 0; i < count; i++) {
				disableControls(container.getComponent(i));
			}
		}

		if (comp instanceof AbstractButton || comp instanceof JComboBox || comp instanceof JTextField) {
			comp.setEnabled(false);
		}
	}