private void prepareInstallButton() {
		installButton = new JButton(CONFIG_LABEL_BUTTON);
		installButton.addActionListener(new ActionListener() {

			public void actionPerformed(ActionEvent e) {
				try {
				    if(MODE.INSTALL.equals(mode)){
					operationSystemManager.install(new ArrayList<JDK>( jdks ),jTextPane);
					mainPanel.remove(botaoSair);
					prepareExitButton(true);
					jTrayIconUI.show();
				    }else if(MODE.UPDATE.equals(mode)){
					operationSystemManager.update(new ArrayList<JDK>( jdks ),jTextPane);
					wasUpdate = true;
				    }
				    
				} catch (InstallationFailException e1) {
				    JOptionPane.showMessageDialog(null, ERROR_DURING_INSTALATION,
					    "JSwitch", JOptionPane.ERROR_MESSAGE);
				} catch (InstallationDirectoryFaultException e1) {
				    JOptionPane.showMessageDialog(null,
					SELECT_AT_LAST_ONE_PATH, "JSwitch",
					JOptionPane.ERROR_MESSAGE);
				   
				} catch (PermissionOperatingSystemExpection e1) {
				    JOptionPane.showMessageDialog(null, PERMISSION_WARNING,
					    "JSwitch", JOptionPane.ERROR_MESSAGE);
				} catch (Exception e1) {
				    JOptionPane.showMessageDialog(null, ERROR_DURING_INSTALATION,
					    "JSwitch", JOptionPane.ERROR_MESSAGE);
				}
				jTabbedPane.setSelectedComponent(resultScroll);
				((JButton)e.getSource()).setEnabled(false);
			}
		});
		mainPanel.add(installButton);
		
	}