private void initComponents() {

        jDialogJanelaPrincipal = new javax.swing.JDialog();
        jPanelPrincipal = new javax.swing.JPanel();
        jLabel15 = new javax.swing.JLabel();
        jButtonInserirNovo = new javax.swing.JButton();
        jButtonConsultar = new javax.swing.JButton();
        jPanelMenus = new javax.swing.JPanel();
        jPanelInserirNovo = new javax.swing.JPanel();
        jButtonNvEquipamento = new javax.swing.JButton();
        jButtonNvEntrada = new javax.swing.JButton();
        jButtonNvMateriaPrima = new javax.swing.JButton();
        jButtonNvFornecedor = new javax.swing.JButton();
        jButtonNvContrPragas = new javax.swing.JButton();
        jButtonNvContrResultados = new javax.swing.JButton();
        jPanelConsultar = new javax.swing.JPanel();
        jButtonConsEquipamento = new javax.swing.JButton();
        jButtonConsEntrada = new javax.swing.JButton();
        jButtonConsDevoluções = new javax.swing.JButton();
        jButtonConsuMateriaPrima = new javax.swing.JButton();
        jButtonNvFornecedor1 = new javax.swing.JButton();
        jButtonNvContrPragas1 = new javax.swing.JButton();
        jButtonNvContrResultados1 = new javax.swing.JButton();
        jLabelBoasVindas = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenuFile = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuMenus = new javax.swing.JMenu();
        jMenuItemEquipamento = new javax.swing.JMenuItem();
        jMenuItemEntradas = new javax.swing.JMenuItem();
        jMenuItemInsectocacadores = new javax.swing.JMenuItem();
        jMenuItemControloResultados = new javax.swing.JMenuItem();
        jDialogMenuControloResultados = new javax.swing.JDialog();
        jPanel2 = new javax.swing.JPanel();
        jLabel11 = new javax.swing.JLabel();
        jButtonNovoControlo1 = new javax.swing.JButton();
        jButtonControlos1 = new javax.swing.JButton();
        jLabelUserLogin = new javax.swing.JLabel();
        jDialogMenuInsectocacadores = new javax.swing.JDialog();
        jPanelMenuInsectocadores = new javax.swing.JPanel();
        jButtonNovoInsecto = new javax.swing.JButton();
        jButtonConsultaInsecto = new javax.swing.JButton();
        jLabelUserLogin2 = new javax.swing.JLabel();
        jDialogMenuEquipamentos = new javax.swing.JDialog();
        jPanelMenuEquipamentos = new javax.swing.JPanel();
        jButtonAddNovoEquipa = new javax.swing.JButton();
        jButtonConsultaEquipamentos = new javax.swing.JButton();
        jLabelUserLogin3 = new javax.swing.JLabel();
        jDialogMenuEntradas = new javax.swing.JDialog();
        jPanelMenuEntradas = new javax.swing.JPanel();
        jButtonNovaEntrada = new javax.swing.JButton();
        jButtonConsultaEntradas = new javax.swing.JButton();
        jButtonNovaMateriaPrima = new javax.swing.JButton();
        jButtonNovoForncedor = new javax.swing.JButton();
        jButtonConsultaDevolucoes = new javax.swing.JButton();
        jButtonConsultarFornecedores = new javax.swing.JButton();
        jButtonConsultaMateriasPrimas = new javax.swing.JButton();
        jLabelUserLogin4 = new javax.swing.JLabel();
        jDialogNovaEntrada = new javax.swing.JDialog();
        jPanelNovaEntrada = new javax.swing.JPanel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        jComboBoxFornecedorEntrada = new javax.swing.JComboBox();
        jTextFieldLoteEntrada = new javax.swing.JTextField();
        jTextFieldQuantidadeEntrada = new javax.swing.JTextField();
        jLabel18 = new javax.swing.JLabel();
        jComboBoxMateriaPrimaEntrada = new javax.swing.JComboBox();
        jLabelFuncionarioLogin = new javax.swing.JLabel();
        jTextFieldNovaEntradaUnidadeQuantidade = new javax.swing.JTextField();
        jPanelBotoesNovaEntrada = new javax.swing.JPanel();
        jButtonGuardarNovaEntrada = new javax.swing.JButton();
        jButtonSairNovaEntrada = new javax.swing.JButton();
        jButtonDesvloquearPanel = new javax.swing.JButton();
        jPanelADevolverNovaEntrada = new javax.swing.JPanel();
        jTextFieldQuantidadeADevolver = new javax.swing.JTextField();
        jLabelQuantidadeADevolver = new javax.swing.JLabel();
        jTextFieldUnidadeQuantidadeADevolver = new javax.swing.JTextField();
        jPanelConformidadesNovaEntrada = new javax.swing.JPanel();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        jComboBoxTemperaturaEntrada = new javax.swing.JComboBox();
        jComboBoxDataValidadeEntrada = new javax.swing.JComboBox();
        jComboBoxCaraOrgonolepticasEntradas = new javax.swing.JComboBox();
        jComboBoxEmbalagemEntradas = new javax.swing.JComboBox();
        jDialogDevolucoes = new javax.swing.JDialog();
        jPanelDevolucoes = new javax.swing.JPanel();
        jLabelFuncionarioResponsavel2 = new javax.swing.JLabel();
        jLabelQuantidadeDevolvida = new javax.swing.JLabel();
        jLabelObservação = new javax.swing.JLabel();
        jTextFieldQuantidadeDevolucao = new javax.swing.JTextField();
        jScrollPaneObservacoesDevolucao = new javax.swing.JScrollPane();
        jTextAreaObservacoesDevolucao = new javax.swing.JTextArea();
        jButtonGuardaDevolucao = new javax.swing.JButton();
        jButtonSairDevolucao = new javax.swing.JButton();
        jLabelQuantidadeADevolverDevolucao = new javax.swing.JLabel();
        jTextFieldQuantidadeADevolverDevolucao = new javax.swing.JTextField();
        jLabel33 = new javax.swing.JLabel();
        jLabelFuncionarioLogin6 = new javax.swing.JLabel();
        jDialogNovaMateriaPrima = new javax.swing.JDialog();
        jPanelNovaMateriaPrima = new javax.swing.JPanel();
        jLabelNomeMateriaPrima = new javax.swing.JLabel();
        jLabelDescricaoMateriaPrima = new javax.swing.JLabel();
        jLabelUnidadeMateriaPrima = new javax.swing.JLabel();
        jTextFieldNomeMateriaPrima = new javax.swing.JTextField();
        jScrollPaneDescricaoMateriaPrima = new javax.swing.JScrollPane();
        jTextAreaDescricaoMateriaPrima = new javax.swing.JTextArea();
        jTextFieldUnidadeMateriaPrima = new javax.swing.JTextField();
        jButtonGuardarMateriaPrima = new javax.swing.JButton();
        jButtonSairMateriaPrima = new javax.swing.JButton();
        jLabel23 = new javax.swing.JLabel();
        jDialogNovoFornecedor = new javax.swing.JDialog();
        jPanelNovoFornecedor = new javax.swing.JPanel();
        jLabelNomeFornecedor = new javax.swing.JLabel();
        jLabelMoradaFornecedor = new javax.swing.JLabel();
        jLabelCodPostalFornecedor = new javax.swing.JLabel();
        jLabelLocalidadeForncedor = new javax.swing.JLabel();
        jLabelContactoForncedor = new javax.swing.JLabel();
        jLabelEmailFornecedor = new javax.swing.JLabel();
        jLabelNIFFornecedor = new javax.swing.JLabel();
        jLabelTipoProduto = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        jTextFieldNomeFornecedor = new javax.swing.JTextField();
        jTextFieldMoradaFornecedor = new javax.swing.JTextField();
        jTextFieldCodPostalFornecedor = new javax.swing.JTextField();
        try{
            javax.swing.text.MaskFormatter cpf= new javax.swing.text.MaskFormatter("####-###");
            jTextFieldCodPostalFornecedor = new javax.swing.JFormattedTextField(cpf);
        }catch (Exception e){}
        jTextFieldLocalidadeFornecedor = new javax.swing.JTextField();
        jTextFieldContactoFornecedor = new javax.swing.JTextField();
        jTextFieldEmailFornecedor = new javax.swing.JTextField();
        jTextFieldNIFFornecedor = new javax.swing.JTextField();
        jTextFieldTipoProdutoFornecedor = new javax.swing.JTextField();
        jButtonGuardarNovoFornecedor = new javax.swing.JButton();
        jButtonSairNovoFornecedor = new javax.swing.JButton();
        jLabelNovoFornecedor = new javax.swing.JLabel();
        jLabel25 = new javax.swing.JLabel();
        jLabel26 = new javax.swing.JLabel();
        jLabel27 = new javax.swing.JLabel();
        jLabel28 = new javax.swing.JLabel();
        jLabel29 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        jLabel32 = new javax.swing.JLabel();
        jComboBoxEstadoFornecedor = new javax.swing.JComboBox();
        jButtonUpdateFornecedor = new javax.swing.JButton();
        jDialogNovoInsectocacador = new javax.swing.JDialog();
        jPanelNovoInsectocacador = new javax.swing.JPanel();
        jLabelNome = new javax.swing.JLabel();
        jLabelReferencia = new javax.swing.JLabel();
        jLabelLocal = new javax.swing.JLabel();
        jTextFieldReferenciaInsecto = new javax.swing.JTextField();
        jTextFieldNomeInsecto = new javax.swing.JTextField();
        jTextFieldLocalInsecto = new javax.swing.JTextField();
        jButtonGuardarInsecto = new javax.swing.JButton();
        jButtonSairInsecto = new javax.swing.JButton();
        jButtonActualizarInsecto = new javax.swing.JButton();
        jButtonAlterarReferencia = new javax.swing.JButton();
        jDialogNovoControloResultados = new javax.swing.JDialog();
        jPanelNovoControloResultdos = new javax.swing.JPanel();
        jComboBoxTipo = new javax.swing.JComboBox();
        jComboBoxOpcao = new javax.swing.JComboBox();
        jLabelTipo = new javax.swing.JLabel();
        jLabelOpcao = new javax.swing.JLabel();
        jLabelResultado = new javax.swing.JLabel();
        jLabelFichaTecnica = new javax.swing.JLabel();
        jLabelDescricao = new javax.swing.JLabel();
        jComboBoxResultado = new javax.swing.JComboBox();
        jScrollPaneDescricao = new javax.swing.JScrollPane();
        jTextAreaDescricao = new javax.swing.JTextArea();
        jLabel2 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jButtonInserir = new javax.swing.JButton();
        jButtonCancelar = new javax.swing.JButton();
        jPanelOutraOpcao = new javax.swing.JPanel();
        jLabelNomeOutraOpcao = new javax.swing.JLabel();
        jTextFieldOutraOpcao = new javax.swing.JTextField();
        jLabelFuncionario = new javax.swing.JLabel();
        jLabelFuncionarioLogin2 = new javax.swing.JLabel();
        jDialogNaoConformidades = new javax.swing.JDialog();
        jPanelNaoConformidades = new javax.swing.JPanel();
        jLabelOcorrecniaNaoConformidade = new javax.swing.JLabel();
        jLabelMedidaCorrectivaNaoConformidade = new javax.swing.JLabel();
        jScrollPaneOcorrencia = new javax.swing.JScrollPane();
        jTextAreaOcorrenciaNaoConformidade = new javax.swing.JTextArea();
        jScrollPanemedidaCorrectiva = new javax.swing.JScrollPane();
        jTextAreaMedidaCorrctivaNaoConformidade = new javax.swing.JTextArea();
        jButtonGravarNaoConformidade = new javax.swing.JButton();
        jButtonCancelarNaoConformidade = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        jComboBoxNaoConformidadeFuncionarioResponsav = new javax.swing.JComboBox();
        jLabel = new javax.swing.JLabel();
        jLabelFuncionarioLogin4 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jPanelVerMensagemProblema = new javax.swing.JPanel();
        jScrollPane7 = new javax.swing.JScrollPane();
        jTextAreaProblemadoControlo = new javax.swing.JTextArea();
        jPanel1 = new javax.swing.JPanel();
        jTextFieldVerSeccaoDoCR = new javax.swing.JTextField();
        jDialogMedidasCorrectiva = new javax.swing.JDialog();
        jLabelMedidasCorrectivas = new javax.swing.JLabel();
        jPanelMedidasCorrectivas = new javax.swing.JPanel();
        jLabelObservacaoMedidasCorrectivas = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTextAreaObservacaoMedidaCorrectiva = new javax.swing.JTextArea();
        jButtonGravarMedidaCorrectiva = new javax.swing.JButton();
        jButtonCancelarMedidaCorrectiva = new javax.swing.JButton();
        jPanelInformacaoAdicional = new javax.swing.JPanel();
        jPanelInformacaoNaoConformidade = new javax.swing.JPanel();
        jLabel40 = new javax.swing.JLabel();
        jLabel41 = new javax.swing.JLabel();
        jScrollPane10 = new javax.swing.JScrollPane();
        jTextAreaDetalhesMC = new javax.swing.JTextArea();
        jScrollPane11 = new javax.swing.JScrollPane();
        jTextAreaMedidasCorrectivasMC = new javax.swing.JTextArea();
        jPanelInformacaoControloResultado = new javax.swing.JPanel();
        jLabel38 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        jTextFieldSeccaoMC = new javax.swing.JTextField();
        jScrollPane9 = new javax.swing.JScrollPane();
        jTextAreaProblemaMC = new javax.swing.JTextArea();
        jDialogNovaManutencaoEquipamento = new javax.swing.JDialog();
        jPanelManutencaoEquipamento = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jScrollPaneObservacaManuetencaoEquipametno = new javax.swing.JScrollPane();
        jTextAreaObservacaoManutencaoEquipameto = new javax.swing.JTextArea();
        jButtonGravarManutencaoEquipametno = new javax.swing.JButton();
        jButtonSairManutencaoEquipamento = new javax.swing.JButton();
        jLabelFuncionarioResponsavel1 = new javax.swing.JLabel();
        jLabelFuncionariologin3 = new javax.swing.JLabel();
        jPanelEquipamentoSeleccionado = new javax.swing.JPanel();
        jTextFieldNomeEquipamentoSeleccionado = new javax.swing.JTextField();
        jDialogNovaLimpeza = new javax.swing.JDialog();
        jPanelNovaLimpeza = new javax.swing.JPanel();
        jLabelFuncionarioResponsavel = new javax.swing.JLabel();
        jLabelData = new javax.swing.JLabel();
        jButtonGuardarLimpeza = new javax.swing.JButton();
        jButtonSairLimpeza = new javax.swing.JButton();
        jLabelFuncionarioLogin5 = new javax.swing.JLabel();
        jLabelDataNovaLimpeza = new javax.swing.JLabel();
        jDialogNovoEquipamento = new javax.swing.JDialog();
        jPanelNovoEquipamento = new javax.swing.JPanel();
        jLabelNome1 = new javax.swing.JLabel();
        jLabelDescrição = new javax.swing.JLabel();
        jTextFieldNomeEquipamento = new javax.swing.JTextField();
        jScrollPaneNovoEquipmanentoObservacao = new javax.swing.JScrollPane();
        jTextAreaObservacaoNovoEquipamento = new javax.swing.JTextArea();
        jButtonGuardarEquipametno = new javax.swing.JButton();
        jButtonSairNovoEquipamento = new javax.swing.JButton();
        jButtonActualizar = new javax.swing.JButton();
        jButtonAtualizaNomeEquipamento = new javax.swing.JButton();
        jDialogConsultaInsectocacadores = new javax.swing.JDialog();
        jPanelConsultaInsecto = new javax.swing.JPanel();
        jScrollPaneConsultInsecto = new javax.swing.JScrollPane();
        jTableConsultaInsecto = new javax.swing.JTable();
        jButtonAddNovoInsecto = new javax.swing.JButton();
        jButtonSairConsultaInsecto = new javax.swing.JButton();
        jButtonNovaLimpeza = new javax.swing.JButton();
        jButtonConsultarLimpezas = new javax.swing.JButton();
        jButtonEditarInsectoca = new javax.swing.JButton();
        jButtonControloResultadosInsectoca = new javax.swing.JButton();
        jTextFieldPesquisaInsectocacador = new javax.swing.JTextField();
        jLabelPesquisarInsectocacador = new javax.swing.JLabel();
        jButtonVerInsectocacadoresInativos = new javax.swing.JButton();
        jButtonAlterarEstadoInsectocacadores = new javax.swing.JButton();
        jLabelConsultaControloPragas = new javax.swing.JLabel();
        jDialogConsultaLimpezas = new javax.swing.JDialog();
        jPanelConsultaLimpezas = new javax.swing.JPanel();
        jScrollPaneConsultaLimpezas = new javax.swing.JScrollPane();
        jTableConsultaLimpezas = new javax.swing.JTable();
        jButtonNovaLimpezaConsultaLimpezas = new javax.swing.JButton();
        jButtonSairConsultaLimpezas = new javax.swing.JButton();
        jDialogConsultaEquipamentos = new javax.swing.JDialog();
        jPanelConsultaEquipamentos = new javax.swing.JPanel();
        jScrollPaneConsultaEquipamentos = new javax.swing.JScrollPane();
        jTableConsultaEquipamentos = new javax.swing.JTable();
        jButtonNovoEquipamento = new javax.swing.JButton();
        jButtonSairConsultaEquipamentos = new javax.swing.JButton();
        jButtonManutencaoConsultaEquipamentos = new javax.swing.JButton();
        jButtonControloResultados = new javax.swing.JButton();
        jButtonEditarEquipamento = new javax.swing.JButton();
        jButtonConsultaManutencao = new javax.swing.JButton();
        jTextFieldPesquisaEquipamento = new javax.swing.JTextField();
        jLabelPesquisarEquipamento = new javax.swing.JLabel();
        jButtonAlterarEstadoEquipamento = new javax.swing.JButton();
        jButtonVerInativasEquipamentos = new javax.swing.JButton();
        jLabelConsultarEquipamentos = new javax.swing.JLabel();
        jDialogConsultaManutencaoEquipamentos = new javax.swing.JDialog();
        jPanelConsultaManutencaoEquipamentos = new javax.swing.JPanel();
        jScrollPaneConsultaManutencaoEquipamentos = new javax.swing.JScrollPane();
        jTableConsultaManutencaoEquipamentos = new javax.swing.JTable();
        jButton2 = new javax.swing.JButton();
        jDialogConsultarControlos = new javax.swing.JDialog();
        jPanelConsultaControlos = new javax.swing.JPanel();
        jLabel9 = new javax.swing.JLabel();
        jScrollPaneConsultarControlos = new javax.swing.JScrollPane();
        jTableConsultarControlos = new javax.swing.JTable();
        jButtonFecharConsultaControlosResultados = new javax.swing.JButton();
        jButtonCriaNovoControloResultados = new javax.swing.JButton();
        jButtonVerNaoConformidade = new javax.swing.JButton();
        jComboBoxSeccao = new javax.swing.JComboBox();
        jLabel10 = new javax.swing.JLabel();
        jButtonVerNaoConformidadeEntrada = new javax.swing.JButton();
        jLabel12 = new javax.swing.JLabel();
        jLabel36 = new javax.swing.JLabel();
        jButtonVerHistoricoControlo = new javax.swing.JButton();
        jDialogConsultaNaoConformidades = new javax.swing.JDialog();
        jPanelConsultaNaoConformidades = new javax.swing.JPanel();
        jLabelNaoConformidades = new javax.swing.JLabel();
        jScrollPaneNaoConformidades = new javax.swing.JScrollPane();
        jTableNaoConformidades = new javax.swing.JTable();
        jButtonVoltar = new javax.swing.JButton();
        jButtonAddNovaNaoConformidade = new javax.swing.JButton();
        jButtonAddMedidaCorrectiva = new javax.swing.JButton();
        jPanelMostraDadosControloResultado = new javax.swing.JPanel();
        jLabelSeccaoNC = new javax.swing.JLabel();
        jLabelProblemaNC = new javax.swing.JLabel();
        jTextFieldVerSeccaoNC = new javax.swing.JTextField();
        jScrollPane8 = new javax.swing.JScrollPane();
        jTextAreaVerProblemaNC = new javax.swing.JTextArea();
        jDialogConsultarMedidasCorrectivas = new javax.swing.JDialog();
        jPanel6 = new javax.swing.JPanel();
        jLabelConsultaMedidasCorrectivas = new javax.swing.JLabel();
        jScrollPaneConsultaMedidasCorrectivas = new javax.swing.JScrollPane();
        jTableConsultaMedidasCorrectivas = new javax.swing.JTable();
        jButtonVoltarMedidasCorrectivas = new javax.swing.JButton();
        jDialogConsultaFornecedores = new javax.swing.JDialog();
        jPanelConsultaFornecedores = new javax.swing.JPanel();
        jLabelConsultaFornecedores = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTableConsultaFornecedor = new javax.swing.JTable();
        jButtonFecharConsultaFornecedores = new javax.swing.JButton();
        jButtonFornecedoresInativos = new javax.swing.JButton();
        jButtonEditarFornecedor = new javax.swing.JButton();
        jButtonAlterarEstadoFornecedor = new javax.swing.JButton();
        jLabel34 = new javax.swing.JLabel();
        jTextFieldPesquisarFornecedor = new javax.swing.JTextField();
        jDialogConsultaEntradas = new javax.swing.JDialog();
        jPanelConsultaEntradas = new javax.swing.JPanel();
        jButtonConsultaEntradasSair = new javax.swing.JButton();
        jScrollPane3 = new javax.swing.JScrollPane();
        jTableConsultaEntradas = new javax.swing.JTable();
        jButtonVerDevolucoes = new javax.swing.JButton();
        jButtonDevolucao = new javax.swing.JButton();
        jLabelPesquisar = new javax.swing.JLabel();
        jTextFieldPesquisarEntrada = new javax.swing.JTextField();
        jButtonVerControloResultados = new javax.swing.JButton();
        jButtonVerLoteTotal = new javax.swing.JButton();
        jLabelTituloConsultaEntradas = new javax.swing.JLabel();
        jDialogConsultaDevolucoes = new javax.swing.JDialog();
        jPanelConsultaDevolucoes = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        jTableConsultaDevolucoes = new javax.swing.JTable();
        jButtonConsultaDevolucoesSair = new javax.swing.JButton();
        jButtonVerFichaDetalhadaConsultaDevolucoes = new javax.swing.JButton();
        jComboBoxFornecedorDevolucoes = new javax.swing.JComboBox();
        jComboBoxMateriaPrimaDevolucoes = new javax.swing.JComboBox();
        jLabelFornecedorDevolucoes = new javax.swing.JLabel();
        jLabelMateriaPrimaDevolucoes = new javax.swing.JLabel();
        jButtonVerTodasAsDevolucoes = new javax.swing.JButton();
        jDialogConsultaMateriasPrimas = new javax.swing.JDialog();
        jPanelConsutaMateriasPrimas = new javax.swing.JPanel();
        jScrollPane5 = new javax.swing.JScrollPane();
        jTableConsultaMateriasPrimas = new javax.swing.JTable();
        jButtonSairConsultaMateriaPrima = new javax.swing.JButton();
        jLabelPesquisarMateriaPrima = new javax.swing.JLabel();
        jTextFieldPesquisarMateriaPrima = new javax.swing.JTextField();
        jButtonAlterarEstadoMP = new javax.swing.JButton();
        jButtonVerInativosMP = new javax.swing.JButton();
        jButtonEditarMP = new javax.swing.JButton();
        jLabelConsultarMateriasPrimas = new javax.swing.JLabel();
        jDialogVerHistoricoControlo = new javax.swing.JDialog();
        jPanelConsultaHistorico = new javax.swing.JPanel();
        jLabel37 = new javax.swing.JLabel();
        jScrollPane6 = new javax.swing.JScrollPane();
        jTableVerHistorico = new javax.swing.JTable();
        jButtonVerDatas = new javax.swing.JButton();
        jButtonSairHistorico = new javax.swing.JButton();
        jDialogAlterarReferencia = new javax.swing.JDialog();
        jPanel3 = new javax.swing.JPanel();
        jButtonGuardarNovaRef = new javax.swing.JButton();
        jTextFieldNovaReferencia = new javax.swing.JTextField();
        jLabelAntigaReferencia = new javax.swing.JLabel();
        jLabelNovaReferencia = new javax.swing.JLabel();
        jLabel42 = new javax.swing.JLabel();
        jDialogAlterarNomeEquipamento = new javax.swing.JDialog();
        jPanelAlterarNomeEquipamento = new javax.swing.JPanel();
        jButtonGuardarNovaNomeEquipp = new javax.swing.JButton();
        jTextFieldNovoNomeEquipp = new javax.swing.JTextField();
        jLabelAntigoNomeEquipp = new javax.swing.JLabel();
        jLabelNovoNomeEquipp = new javax.swing.JLabel();
        jLabel43 = new javax.swing.JLabel();
        jDialog1 = new javax.swing.JDialog();
        jButtonSeleccionarNPF = new javax.swing.JButton();
        jTextFieldUploudNUC = new javax.swing.JTextField();
        JT01 = new javax.swing.JTextField();
        JT02 = new javax.swing.JTextField();
        JTRES = new javax.swing.JTextField();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jComboBox1 = new javax.swing.JComboBox();
        jButton5 = new javax.swing.JButton();
        jPanelJanela = new javax.swing.JPanel();
        jPanelRealizaLogin = new javax.swing.JPanel();
        jLabelNomeLogin = new javax.swing.JLabel();
        jLabelPasswordLogin = new javax.swing.JLabel();
        jPasswordFieldLogin = new javax.swing.JPasswordField();
        jButtonEntrar = new javax.swing.JButton();
        jComboBoxNomeLogin = new javax.swing.JComboBox();
        jButton1 = new javax.swing.JButton();

        jDialogJanelaPrincipal.setTitle("Janela Principal");
        jDialogJanelaPrincipal.setMinimumSize(new java.awt.Dimension(700, 500));

        jPanelPrincipal.setBorder(javax.swing.BorderFactory.createTitledBorder("Menus Rapidos"));

        jLabel15.setText("Atalhos Rapidos");

        jButtonInserirNovo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonInserirNovo.setText("Inserir Novo");
        jButtonInserirNovo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonInserirNovoActionPerformed(evt);
            }
        });

        jButtonConsultar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Consltas_Menu.png"))); // NOI18N
        jButtonConsultar.setText("Consultar");
        jButtonConsultar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsultarActionPerformed(evt);
            }
        });

        jPanelInserirNovo.setBorder(javax.swing.BorderFactory.createTitledBorder("Inserir Novo"));

        jButtonNvEquipamento.setText("Equipamento");
        jButtonNvEquipamento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNvEquipamentoActionPerformed(evt);
            }
        });

        jButtonNvEntrada.setText("Entrada");
        jButtonNvEntrada.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNvEntradaActionPerformed(evt);
            }
        });

        jButtonNvMateriaPrima.setText("Materia-Prima");
        jButtonNvMateriaPrima.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNvMateriaPrimaActionPerformed(evt);
            }
        });

        jButtonNvFornecedor.setText("Fornecedor");
        jButtonNvFornecedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNvFornecedorActionPerformed(evt);
            }
        });

        jButtonNvContrPragas.setText("Contr. Pragas");
        jButtonNvContrPragas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNvContrPragasActionPerformed(evt);
            }
        });

        jButtonNvContrResultados.setText("Contr.Resultados");
        jButtonNvContrResultados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNvContrResultadosActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelInserirNovoLayout = new javax.swing.GroupLayout(jPanelInserirNovo);
        jPanelInserirNovo.setLayout(jPanelInserirNovoLayout);
        jPanelInserirNovoLayout.setHorizontalGroup(
            jPanelInserirNovoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelInserirNovoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelInserirNovoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jButtonNvFornecedor, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonNvEquipamento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelInserirNovoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonNvEntrada, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonNvContrPragas, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(14, 14, 14)
                .addGroup(jPanelInserirNovoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jButtonNvContrResultados, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jButtonNvMateriaPrima, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(18, 18, 18))
        );
        jPanelInserirNovoLayout.setVerticalGroup(
            jPanelInserirNovoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelInserirNovoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelInserirNovoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonNvEquipamento)
                    .addComponent(jButtonNvEntrada)
                    .addComponent(jButtonNvMateriaPrima))
                .addGap(18, 18, 18)
                .addGroup(jPanelInserirNovoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonNvFornecedor)
                    .addComponent(jButtonNvContrPragas)
                    .addComponent(jButtonNvContrResultados))
                .addContainerGap(25, Short.MAX_VALUE))
        );

        jPanelConsultar.setBorder(javax.swing.BorderFactory.createTitledBorder("Consultar"));

        jButtonConsEquipamento.setText("Equipamento");
        jButtonConsEquipamento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsEquipamentoActionPerformed(evt);
            }
        });

        jButtonConsEntrada.setText("Entrada");
        jButtonConsEntrada.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsEntradaActionPerformed(evt);
            }
        });

        jButtonConsDevoluções.setText("Devoluções");
        jButtonConsDevoluções.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsDevoluçõesActionPerformed(evt);
            }
        });

        jButtonConsuMateriaPrima.setText("Materia-Prima");
        jButtonConsuMateriaPrima.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsuMateriaPrimaActionPerformed(evt);
            }
        });

        jButtonNvFornecedor1.setText("Fornecedor");
        jButtonNvFornecedor1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNvFornecedor1ActionPerformed(evt);
            }
        });

        jButtonNvContrPragas1.setText("Contr. Pragas");
        jButtonNvContrPragas1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNvContrPragas1ActionPerformed(evt);
            }
        });

        jButtonNvContrResultados1.setText("Contr.Resultados");
        jButtonNvContrResultados1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNvContrResultados1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelConsultarLayout = new javax.swing.GroupLayout(jPanelConsultar);
        jPanelConsultar.setLayout(jPanelConsultarLayout);
        jPanelConsultarLayout.setHorizontalGroup(
            jPanelConsultarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultarLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelConsultarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelConsultarLayout.createSequentialGroup()
                        .addComponent(jButtonNvContrResultados1)
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(jPanelConsultarLayout.createSequentialGroup()
                        .addGroup(jPanelConsultarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButtonConsuMateriaPrima, javax.swing.GroupLayout.DEFAULT_SIZE, 119, Short.MAX_VALUE)
                            .addComponent(jButtonConsEquipamento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(15, 15, 15)
                        .addGroup(jPanelConsultarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButtonConsEntrada, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButtonNvFornecedor1, javax.swing.GroupLayout.DEFAULT_SIZE, 89, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelConsultarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jButtonConsDevoluções, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButtonNvContrPragas1, javax.swing.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE))
                        .addGap(51, 51, 51))))
        );
        jPanelConsultarLayout.setVerticalGroup(
            jPanelConsultarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultarLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelConsultarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonConsEquipamento)
                    .addComponent(jButtonConsEntrada)
                    .addComponent(jButtonConsDevoluções))
                .addGap(18, 18, 18)
                .addGroup(jPanelConsultarLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonConsuMateriaPrima)
                    .addComponent(jButtonNvFornecedor1)
                    .addComponent(jButtonNvContrPragas1))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButtonNvContrResultados1)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanelMenusLayout = new javax.swing.GroupLayout(jPanelMenus);
        jPanelMenus.setLayout(jPanelMenusLayout);
        jPanelMenusLayout.setHorizontalGroup(
            jPanelMenusLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMenusLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelMenusLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanelInserirNovo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanelConsultar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanelMenusLayout.setVerticalGroup(
            jPanelMenusLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMenusLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelInserirNovo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanelConsultar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPanelPrincipalLayout = new javax.swing.GroupLayout(jPanelPrincipal);
        jPanelPrincipal.setLayout(jPanelPrincipalLayout);
        jPanelPrincipalLayout.setHorizontalGroup(
            jPanelPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelPrincipalLayout.createSequentialGroup()
                .addGroup(jPanelPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelPrincipalLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel15))
                    .addGroup(jPanelPrincipalLayout.createSequentialGroup()
                        .addGap(25, 25, 25)
                        .addGroup(jPanelPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jButtonInserirNovo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButtonConsultar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(18, 18, 18)
                        .addComponent(jPanelMenus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(97, Short.MAX_VALUE))
        );
        jPanelPrincipalLayout.setVerticalGroup(
            jPanelPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelPrincipalLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel15)
                .addGap(18, 18, 18)
                .addGroup(jPanelPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelPrincipalLayout.createSequentialGroup()
                        .addComponent(jButtonInserirNovo)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jButtonConsultar))
                    .addComponent(jPanelMenus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabelBoasVindas.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabelBoasVindas.setText("Olá, ");

        jMenuFile.setText("Programa");

        jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_L, java.awt.event.InputEvent.CTRL_MASK));
        jMenuItem1.setText("Logout");
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenuFile.add(jMenuItem1);

        jMenuBar1.add(jMenuFile);

        jMenuMenus.setText("Menus");

        jMenuItemEquipamento.setText("Equipamentos");
        jMenuItemEquipamento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemEquipamentoActionPerformed(evt);
            }
        });
        jMenuMenus.add(jMenuItemEquipamento);

        jMenuItemEntradas.setText("Entradas");
        jMenuItemEntradas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemEntradasActionPerformed(evt);
            }
        });
        jMenuMenus.add(jMenuItemEntradas);

        jMenuItemInsectocacadores.setText("Contr. Pragas");
        jMenuItemInsectocacadores.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemInsectocacadoresActionPerformed(evt);
            }
        });
        jMenuMenus.add(jMenuItemInsectocacadores);

        jMenuItemControloResultados.setText("Controlo Resultados");
        jMenuItemControloResultados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItemControloResultadosActionPerformed(evt);
            }
        });
        jMenuMenus.add(jMenuItemControloResultados);

        jMenuBar1.add(jMenuMenus);

        jDialogJanelaPrincipal.setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout jDialogJanelaPrincipalLayout = new javax.swing.GroupLayout(jDialogJanelaPrincipal.getContentPane());
        jDialogJanelaPrincipal.getContentPane().setLayout(jDialogJanelaPrincipalLayout);
        jDialogJanelaPrincipalLayout.setHorizontalGroup(
            jDialogJanelaPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogJanelaPrincipalLayout.createSequentialGroup()
                .addGroup(jDialogJanelaPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogJanelaPrincipalLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanelPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jDialogJanelaPrincipalLayout.createSequentialGroup()
                        .addGap(22, 22, 22)
                        .addComponent(jLabelBoasVindas)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jDialogJanelaPrincipalLayout.setVerticalGroup(
            jDialogJanelaPrincipalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogJanelaPrincipalLayout.createSequentialGroup()
                .addGap(12, 12, 12)
                .addComponent(jLabelBoasVindas)
                .addGap(18, 18, 18)
                .addComponent(jPanelPrincipal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(31, Short.MAX_VALUE))
        );

        jDialogMenuControloResultados.setTitle("MENU CONTROLO DE RESULTADOS");
        jDialogMenuControloResultados.setMinimumSize(new java.awt.Dimension(410, 150));

        jLabel11.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel11.setText("Controlo de Resultados");

        jButtonNovoControlo1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonNovoControlo1.setText("Novo Controlo");
        jButtonNovoControlo1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNovoControlo1ActionPerformed(evt);
            }
        });

        jButtonControlos1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Consltas_Menu.png"))); // NOI18N
        jButtonControlos1.setText("Consultar Controlos");
        jButtonControlos1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonControlos1ActionPerformed(evt);
            }
        });

        jLabelUserLogin.setText("jLabel36");

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jLabel11)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabelUserLogin))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addComponent(jButtonNovoControlo1)
                        .addGap(40, 40, 40)
                        .addComponent(jButtonControlos1)))
                .addContainerGap(30, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel11)
                    .addComponent(jLabelUserLogin))
                .addGap(18, 18, 18)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonNovoControlo1)
                    .addComponent(jButtonControlos1))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogMenuControloResultadosLayout = new javax.swing.GroupLayout(jDialogMenuControloResultados.getContentPane());
        jDialogMenuControloResultados.getContentPane().setLayout(jDialogMenuControloResultadosLayout);
        jDialogMenuControloResultadosLayout.setHorizontalGroup(
            jDialogMenuControloResultadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogMenuControloResultadosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(12, Short.MAX_VALUE))
        );
        jDialogMenuControloResultadosLayout.setVerticalGroup(
            jDialogMenuControloResultadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogMenuControloResultadosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jDialogMenuInsectocacadores.setTitle("MENU CONTROLO DE PRAGAS");
        jDialogMenuInsectocacadores.setMinimumSize(new java.awt.Dimension(480, 150));

        jButtonNovoInsecto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonNovoInsecto.setText("Novo Controlo de Praga");
        jButtonNovoInsecto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNovoInsectoActionPerformed(evt);
            }
        });

        jButtonConsultaInsecto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Consltas_Menu.png"))); // NOI18N
        jButtonConsultaInsecto.setText("Consulta Controlos de Praga");
        jButtonConsultaInsecto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsultaInsectoActionPerformed(evt);
            }
        });

        jLabelUserLogin2.setText("jLabel36");

        javax.swing.GroupLayout jPanelMenuInsectocadoresLayout = new javax.swing.GroupLayout(jPanelMenuInsectocadores);
        jPanelMenuInsectocadores.setLayout(jPanelMenuInsectocadoresLayout);
        jPanelMenuInsectocadoresLayout.setHorizontalGroup(
            jPanelMenuInsectocadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMenuInsectocadoresLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelMenuInsectocadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabelUserLogin2)
                    .addGroup(jPanelMenuInsectocadoresLayout.createSequentialGroup()
                        .addComponent(jButtonNovoInsecto)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonConsultaInsecto)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelMenuInsectocadoresLayout.setVerticalGroup(
            jPanelMenuInsectocadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelMenuInsectocadoresLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelUserLogin2)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 21, Short.MAX_VALUE)
                .addGroup(jPanelMenuInsectocadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonNovoInsecto)
                    .addComponent(jButtonConsultaInsecto))
                .addGap(20, 20, 20))
        );

        javax.swing.GroupLayout jDialogMenuInsectocacadoresLayout = new javax.swing.GroupLayout(jDialogMenuInsectocacadores.getContentPane());
        jDialogMenuInsectocacadores.getContentPane().setLayout(jDialogMenuInsectocacadoresLayout);
        jDialogMenuInsectocacadoresLayout.setHorizontalGroup(
            jDialogMenuInsectocacadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogMenuInsectocacadoresLayout.createSequentialGroup()
                .addComponent(jPanelMenuInsectocadores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 62, Short.MAX_VALUE))
        );
        jDialogMenuInsectocacadoresLayout.setVerticalGroup(
            jDialogMenuInsectocacadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanelMenuInsectocadores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );

        jDialogMenuEquipamentos.setTitle("MENU EQUIPAMENTOS");
        jDialogMenuEquipamentos.setMinimumSize(new java.awt.Dimension(410, 150));

        jButtonAddNovoEquipa.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonAddNovoEquipa.setText("Novo Equipamento");
        jButtonAddNovoEquipa.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAddNovoEquipaActionPerformed(evt);
            }
        });

        jButtonConsultaEquipamentos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Consltas_Menu.png"))); // NOI18N
        jButtonConsultaEquipamentos.setText("Consultar Equipamento");
        jButtonConsultaEquipamentos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsultaEquipamentosActionPerformed(evt);
            }
        });

        jLabelUserLogin3.setText("jLabel36");

        javax.swing.GroupLayout jPanelMenuEquipamentosLayout = new javax.swing.GroupLayout(jPanelMenuEquipamentos);
        jPanelMenuEquipamentos.setLayout(jPanelMenuEquipamentosLayout);
        jPanelMenuEquipamentosLayout.setHorizontalGroup(
            jPanelMenuEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMenuEquipamentosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelMenuEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabelUserLogin3)
                    .addGroup(jPanelMenuEquipamentosLayout.createSequentialGroup()
                        .addComponent(jButtonAddNovoEquipa)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonConsultaEquipamentos)))
                .addContainerGap(19, Short.MAX_VALUE))
        );
        jPanelMenuEquipamentosLayout.setVerticalGroup(
            jPanelMenuEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelMenuEquipamentosLayout.createSequentialGroup()
                .addContainerGap(14, Short.MAX_VALUE)
                .addComponent(jLabelUserLogin3)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelMenuEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonAddNovoEquipa)
                    .addComponent(jButtonConsultaEquipamentos))
                .addContainerGap())
        );

        javax.swing.GroupLayout jDialogMenuEquipamentosLayout = new javax.swing.GroupLayout(jDialogMenuEquipamentos.getContentPane());
        jDialogMenuEquipamentos.getContentPane().setLayout(jDialogMenuEquipamentosLayout);
        jDialogMenuEquipamentosLayout.setHorizontalGroup(
            jDialogMenuEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogMenuEquipamentosLayout.createSequentialGroup()
                .addComponent(jPanelMenuEquipamentos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 5, Short.MAX_VALUE))
        );
        jDialogMenuEquipamentosLayout.setVerticalGroup(
            jDialogMenuEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogMenuEquipamentosLayout.createSequentialGroup()
                .addComponent(jPanelMenuEquipamentos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 10, Short.MAX_VALUE))
        );

        jDialogMenuEntradas.setTitle("MENU ENTRADAS");
        jDialogMenuEntradas.setFocusCycleRoot(false);
        jDialogMenuEntradas.setMinimumSize(new java.awt.Dimension(450, 370));

        jButtonNovaEntrada.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonNovaEntrada.setText("Nova Entrada");
        jButtonNovaEntrada.setAlignmentY(0.0F);
        jButtonNovaEntrada.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        jButtonNovaEntrada.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jButtonNovaEntrada.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNovaEntradaActionPerformed(evt);
            }
        });

        jButtonConsultaEntradas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Consltas_Menu.png"))); // NOI18N
        jButtonConsultaEntradas.setText("Consultar Entradas");
        jButtonConsultaEntradas.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jButtonConsultaEntradas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsultaEntradasActionPerformed(evt);
            }
        });

        jButtonNovaMateriaPrima.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonNovaMateriaPrima.setText("Nova Matéria-Prima");
        jButtonNovaMateriaPrima.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNovaMateriaPrimaActionPerformed(evt);
            }
        });

        jButtonNovoForncedor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fornecedor.png"))); // NOI18N
        jButtonNovoForncedor.setText("Novo Forncedor");
        jButtonNovoForncedor.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jButtonNovoForncedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNovoForncedorActionPerformed(evt);
            }
        });

        jButtonConsultaDevolucoes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Consltas_Menu.png"))); // NOI18N
        jButtonConsultaDevolucoes.setText("Consultar Devoluçõoes");
        jButtonConsultaDevolucoes.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jButtonConsultaDevolucoes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsultaDevolucoesActionPerformed(evt);
            }
        });

        jButtonConsultarFornecedores.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Consltas_Menu.png"))); // NOI18N
        jButtonConsultarFornecedores.setText("Consultar Fornecedores");
        jButtonConsultarFornecedores.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jButtonConsultarFornecedores.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsultarFornecedoresActionPerformed(evt);
            }
        });

        jButtonConsultaMateriasPrimas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Consltas_Menu.png"))); // NOI18N
        jButtonConsultaMateriasPrimas.setText("Consulta Materias-Primas");
        jButtonConsultaMateriasPrimas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsultaMateriasPrimasActionPerformed(evt);
            }
        });

        jLabelUserLogin4.setText("jLabel36");

        javax.swing.GroupLayout jPanelMenuEntradasLayout = new javax.swing.GroupLayout(jPanelMenuEntradas);
        jPanelMenuEntradas.setLayout(jPanelMenuEntradasLayout);
        jPanelMenuEntradasLayout.setHorizontalGroup(
            jPanelMenuEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMenuEntradasLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelMenuEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabelUserLogin4)
                    .addGroup(jPanelMenuEntradasLayout.createSequentialGroup()
                        .addGroup(jPanelMenuEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(jButtonNovoForncedor, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButtonNovaMateriaPrima, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButtonNovaEntrada, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanelMenuEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jButtonConsultarFornecedores, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButtonConsultaDevolucoes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButtonConsultaEntradas, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButtonConsultaMateriasPrimas))))
                .addContainerGap(25, Short.MAX_VALUE))
        );
        jPanelMenuEntradasLayout.setVerticalGroup(
            jPanelMenuEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMenuEntradasLayout.createSequentialGroup()
                .addGroup(jPanelMenuEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelMenuEntradasLayout.createSequentialGroup()
                        .addGap(7, 7, 7)
                        .addComponent(jLabelUserLogin4)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonConsultaEntradas)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jButtonConsultaDevolucoes))
                    .addGroup(jPanelMenuEntradasLayout.createSequentialGroup()
                        .addGap(68, 68, 68)
                        .addComponent(jButtonNovaEntrada)))
                .addGap(18, 18, 18)
                .addGroup(jPanelMenuEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonConsultaMateriasPrimas)
                    .addComponent(jButtonNovaMateriaPrima))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelMenuEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonConsultarFornecedores)
                    .addComponent(jButtonNovoForncedor, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(54, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogMenuEntradasLayout = new javax.swing.GroupLayout(jDialogMenuEntradas.getContentPane());
        jDialogMenuEntradas.getContentPane().setLayout(jDialogMenuEntradasLayout);
        jDialogMenuEntradasLayout.setHorizontalGroup(
            jDialogMenuEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogMenuEntradasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelMenuEntradas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(27, Short.MAX_VALUE))
        );
        jDialogMenuEntradasLayout.setVerticalGroup(
            jDialogMenuEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogMenuEntradasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelMenuEntradas, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jDialogNovaEntrada.setTitle("NOVA ENTRADA");
        jDialogNovaEntrada.setMinimumSize(new java.awt.Dimension(600, 480));

        jLabel13.setText("Fornecedor");

        jLabel14.setText("Funcionario Responsavel");

        jLabel16.setText("Lote Origem");

        jLabel17.setText("Quantidade");

        jComboBoxFornecedorEntrada.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        jTextFieldLoteEntrada.setEditable(false);

        jLabel18.setText("Materia Prima");

        jComboBoxMateriaPrimaEntrada.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboBoxMateriaPrimaEntrada.addPopupMenuListener(new javax.swing.event.PopupMenuListener() {
            public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {
                jComboBoxMateriaPrimaEntradaPopupMenuWillBecomeInvisible(evt);
            }
            public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) {
            }
            public void popupMenuCanceled(javax.swing.event.PopupMenuEvent evt) {
            }
        });

        jLabelFuncionarioLogin.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabelFuncionarioLogin.setText("jLabel37");

        javax.swing.GroupLayout jPanelNovaEntradaLayout = new javax.swing.GroupLayout(jPanelNovaEntrada);
        jPanelNovaEntrada.setLayout(jPanelNovaEntradaLayout);
        jPanelNovaEntradaLayout.setHorizontalGroup(
            jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelNovaEntradaLayout.createSequentialGroup()
                .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelNovaEntradaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel14)
                            .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addGroup(jPanelNovaEntradaLayout.createSequentialGroup()
                                    .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel16)
                                        .addComponent(jLabel17))
                                    .addGap(25, 25, 25)
                                    .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addGroup(jPanelNovaEntradaLayout.createSequentialGroup()
                                            .addComponent(jTextFieldQuantidadeEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(jTextFieldNovaEntradaUnidadeQuantidade, javax.swing.GroupLayout.DEFAULT_SIZE, 38, Short.MAX_VALUE))
                                        .addComponent(jTextFieldLoteEntrada)))
                                .addGroup(jPanelNovaEntradaLayout.createSequentialGroup()
                                    .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jLabel13)
                                        .addComponent(jLabel18))
                                    .addGap(18, 18, 18)
                                    .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                        .addComponent(jComboBoxFornecedorEntrada, 0, 161, Short.MAX_VALUE)
                                        .addComponent(jComboBoxMateriaPrimaEntrada, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))))
                    .addGroup(jPanelNovaEntradaLayout.createSequentialGroup()
                        .addGap(58, 58, 58)
                        .addComponent(jLabelFuncionarioLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 155, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelNovaEntradaLayout.setVerticalGroup(
            jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelNovaEntradaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel14)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabelFuncionarioLogin)
                .addGap(27, 27, 27)
                .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel13)
                    .addComponent(jComboBoxFornecedorEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(25, 25, 25)
                .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel18)
                    .addComponent(jComboBoxMateriaPrimaEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel16)
                    .addComponent(jTextFieldLoteEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel17)
                    .addComponent(jTextFieldQuantidadeEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldNovaEntradaUnidadeQuantidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(108, Short.MAX_VALUE))
        );

        jButtonGuardarNovaEntrada.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonGuardarNovaEntrada.setText("Guardar");
        jButtonGuardarNovaEntrada.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                GuardarMouseClicked(evt);
            }
        });
        jButtonGuardarNovaEntrada.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardarNovaEntradaActionPerformed(evt);
            }
        });

        jButtonSairNovaEntrada.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonSairNovaEntrada.setText("Fechar");
        jButtonSairNovaEntrada.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSairNovaEntradaActionPerformed(evt);
            }
        });

        jButtonDesvloquearPanel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/desbloquear.png"))); // NOI18N
        jButtonDesvloquearPanel.setText("Desbloquear");
        jButtonDesvloquearPanel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDesvloquearPanelActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelBotoesNovaEntradaLayout = new javax.swing.GroupLayout(jPanelBotoesNovaEntrada);
        jPanelBotoesNovaEntrada.setLayout(jPanelBotoesNovaEntradaLayout);
        jPanelBotoesNovaEntradaLayout.setHorizontalGroup(
            jPanelBotoesNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBotoesNovaEntradaLayout.createSequentialGroup()
                .addGap(48, 48, 48)
                .addComponent(jButtonGuardarNovaEntrada)
                .addGap(18, 18, 18)
                .addComponent(jButtonSairNovaEntrada)
                .addGap(18, 18, 18)
                .addComponent(jButtonDesvloquearPanel)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelBotoesNovaEntradaLayout.setVerticalGroup(
            jPanelBotoesNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelBotoesNovaEntradaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelBotoesNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonGuardarNovaEntrada)
                    .addComponent(jButtonSairNovaEntrada)
                    .addComponent(jButtonDesvloquearPanel))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanelADevolverNovaEntrada.setBorder(javax.swing.BorderFactory.createTitledBorder("A Devolver"));

        jLabelQuantidadeADevolver.setText("Quantidade a Devolver ?");

        javax.swing.GroupLayout jPanelADevolverNovaEntradaLayout = new javax.swing.GroupLayout(jPanelADevolverNovaEntrada);
        jPanelADevolverNovaEntrada.setLayout(jPanelADevolverNovaEntradaLayout);
        jPanelADevolverNovaEntradaLayout.setHorizontalGroup(
            jPanelADevolverNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelADevolverNovaEntradaLayout.createSequentialGroup()
                .addGroup(jPanelADevolverNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelADevolverNovaEntradaLayout.createSequentialGroup()
                        .addContainerGap(63, Short.MAX_VALUE)
                        .addComponent(jTextFieldQuantidadeADevolver, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldUnidadeQuantidadeADevolver, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelADevolverNovaEntradaLayout.createSequentialGroup()
                        .addGap(22, 22, 22)
                        .addComponent(jLabelQuantidadeADevolver)))
                .addContainerGap())
        );
        jPanelADevolverNovaEntradaLayout.setVerticalGroup(
            jPanelADevolverNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelADevolverNovaEntradaLayout.createSequentialGroup()
                .addGap(13, 13, 13)
                .addComponent(jLabelQuantidadeADevolver)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelADevolverNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTextFieldQuantidadeADevolver, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTextFieldUnidadeQuantidadeADevolver, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(22, Short.MAX_VALUE))
        );

        jPanelConformidadesNovaEntrada.setBorder(javax.swing.BorderFactory.createTitledBorder("Conformidades"));

        jLabel19.setText("Temperatura");

        jLabel20.setText("Data Validade");

        jLabel21.setText("Caract. Orgonolepticas");

        jLabel22.setText("Embalagem/Transporte");

        jComboBoxTemperaturaEntrada.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "--Opção--", "C", "NC" }));

        jComboBoxDataValidadeEntrada.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "--Opção--", "C", "NC" }));

        jComboBoxCaraOrgonolepticasEntradas.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "--Opção--", "C", "NC" }));

        jComboBoxEmbalagemEntradas.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "--Opção--", "C", "NC" }));

        javax.swing.GroupLayout jPanelConformidadesNovaEntradaLayout = new javax.swing.GroupLayout(jPanelConformidadesNovaEntrada);
        jPanelConformidadesNovaEntrada.setLayout(jPanelConformidadesNovaEntradaLayout);
        jPanelConformidadesNovaEntradaLayout.setHorizontalGroup(
            jPanelConformidadesNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConformidadesNovaEntradaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelConformidadesNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel19)
                    .addComponent(jLabel20)
                    .addComponent(jLabel21)
                    .addComponent(jLabel22))
                .addGap(26, 26, 26)
                .addGroup(jPanelConformidadesNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jComboBoxTemperaturaEntrada, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jComboBoxDataValidadeEntrada, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jComboBoxCaraOrgonolepticasEntradas, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jComboBoxEmbalagemEntradas, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelConformidadesNovaEntradaLayout.setVerticalGroup(
            jPanelConformidadesNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConformidadesNovaEntradaLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addGroup(jPanelConformidadesNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel19)
                    .addComponent(jComboBoxTemperaturaEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelConformidadesNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel20)
                    .addComponent(jComboBoxDataValidadeEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelConformidadesNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel21)
                    .addComponent(jComboBoxCaraOrgonolepticasEntradas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelConformidadesNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel22)
                    .addComponent(jComboBoxEmbalagemEntradas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogNovaEntradaLayout = new javax.swing.GroupLayout(jDialogNovaEntrada.getContentPane());
        jDialogNovaEntrada.getContentPane().setLayout(jDialogNovaEntradaLayout);
        jDialogNovaEntradaLayout.setHorizontalGroup(
            jDialogNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNovaEntradaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDialogNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanelBotoesNovaEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jDialogNovaEntradaLayout.createSequentialGroup()
                        .addComponent(jPanelNovaEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jDialogNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jPanelConformidadesNovaEntrada, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanelADevolverNovaEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(46, Short.MAX_VALUE))
        );
        jDialogNovaEntradaLayout.setVerticalGroup(
            jDialogNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNovaEntradaLayout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(jDialogNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogNovaEntradaLayout.createSequentialGroup()
                        .addComponent(jPanelConformidadesNovaEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jPanelADevolverNovaEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jPanelNovaEntrada, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanelBotoesNovaEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(24, Short.MAX_VALUE))
        );

        jDialogDevolucoes.setTitle("NOVA DEVOLUÇÃO");
        jDialogDevolucoes.setMinimumSize(new java.awt.Dimension(380, 500));

        jPanelDevolucoes.setToolTipText("DEVOLUÇÃO");

        jLabelFuncionarioResponsavel2.setText("Funcionario ");

        jLabelQuantidadeDevolvida.setText("Quantidade Devolvida");

        jLabelObservação.setText("Observação");

        jTextAreaObservacoesDevolucao.setColumns(20);
        jTextAreaObservacoesDevolucao.setLineWrap(true);
        jTextAreaObservacoesDevolucao.setRows(5);
        jScrollPaneObservacoesDevolucao.setViewportView(jTextAreaObservacoesDevolucao);

        jButtonGuardaDevolucao.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonGuardaDevolucao.setText("Guardar");
        jButtonGuardaDevolucao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardaDevolucaoActionPerformed(evt);
            }
        });

        jButtonSairDevolucao.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonSairDevolucao.setText("Fechar");
        jButtonSairDevolucao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSairDevolucaoActionPerformed(evt);
            }
        });

        jLabelQuantidadeADevolverDevolucao.setText("Quantidade que Falta");

        jTextFieldQuantidadeADevolverDevolucao.setEditable(false);
        jTextFieldQuantidadeADevolverDevolucao.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jTextFieldQuantidadeADevolverDevolucao.setForeground(new java.awt.Color(255, 0, 0));

        jLabel33.setText("Devolver");

        jLabelFuncionarioLogin6.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabelFuncionarioLogin6.setText("jLabel37");

        javax.swing.GroupLayout jPanelDevolucoesLayout = new javax.swing.GroupLayout(jPanelDevolucoes);
        jPanelDevolucoes.setLayout(jPanelDevolucoesLayout);
        jPanelDevolucoesLayout.setHorizontalGroup(
            jPanelDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDevolucoesLayout.createSequentialGroup()
                .addGroup(jPanelDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelDevolucoesLayout.createSequentialGroup()
                        .addGap(58, 58, 58)
                        .addComponent(jLabelFuncionarioResponsavel2)
                        .addGap(18, 18, 18)
                        .addComponent(jLabelFuncionarioLogin6))
                    .addGroup(jPanelDevolucoesLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanelDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelDevolucoesLayout.createSequentialGroup()
                                .addGroup(jPanelDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabelObservação)
                                    .addComponent(jLabelQuantidadeADevolverDevolucao)
                                    .addComponent(jLabel33)
                                    .addComponent(jLabelQuantidadeDevolvida))
                                .addGap(18, 18, 18)
                                .addGroup(jPanelDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jTextFieldQuantidadeDevolucao, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jTextFieldQuantidadeADevolverDevolucao, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 3, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanelDevolucoesLayout.createSequentialGroup()
                                .addGap(61, 61, 61)
                                .addGroup(jPanelDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                    .addGroup(jPanelDevolucoesLayout.createSequentialGroup()
                                        .addComponent(jButtonGuardaDevolucao)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(jButtonSairDevolucao))
                                    .addComponent(jScrollPaneObservacoesDevolucao, javax.swing.GroupLayout.PREFERRED_SIZE, 225, javax.swing.GroupLayout.PREFERRED_SIZE))))))
                .addContainerGap(28, Short.MAX_VALUE))
        );
        jPanelDevolucoesLayout.setVerticalGroup(
            jPanelDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDevolucoesLayout.createSequentialGroup()
                .addGap(33, 33, 33)
                .addGroup(jPanelDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelFuncionarioResponsavel2)
                    .addComponent(jLabelFuncionarioLogin6))
                .addGap(18, 18, 18)
                .addGroup(jPanelDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelDevolucoesLayout.createSequentialGroup()
                        .addComponent(jLabelQuantidadeADevolverDevolucao)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel33))
                    .addGroup(jPanelDevolucoesLayout.createSequentialGroup()
                        .addGap(8, 8, 8)
                        .addComponent(jTextFieldQuantidadeADevolverDevolucao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18)
                .addGroup(jPanelDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelQuantidadeDevolvida)
                    .addComponent(jTextFieldQuantidadeDevolucao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(29, 29, 29)
                .addComponent(jLabelObservação)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPaneObservacoesDevolucao, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanelDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonGuardaDevolucao)
                    .addComponent(jButtonSairDevolucao))
                .addContainerGap(28, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogDevolucoesLayout = new javax.swing.GroupLayout(jDialogDevolucoes.getContentPane());
        jDialogDevolucoes.getContentPane().setLayout(jDialogDevolucoesLayout);
        jDialogDevolucoesLayout.setHorizontalGroup(
            jDialogDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogDevolucoesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelDevolucoes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(20, Short.MAX_VALUE))
        );
        jDialogDevolucoesLayout.setVerticalGroup(
            jDialogDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogDevolucoesLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addComponent(jPanelDevolucoes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jDialogNovaMateriaPrima.setTitle("NOVA MAT. PRIMA");
        jDialogNovaMateriaPrima.setMinimumSize(new java.awt.Dimension(332, 421));

        jLabelNomeMateriaPrima.setText("Nome");

        jLabelDescricaoMateriaPrima.setText("Descricao");

        jLabelUnidadeMateriaPrima.setText("Unidade");

        jTextAreaDescricaoMateriaPrima.setColumns(20);
        jTextAreaDescricaoMateriaPrima.setLineWrap(true);
        jTextAreaDescricaoMateriaPrima.setRows(4);
        jTextAreaDescricaoMateriaPrima.setMinimumSize(new java.awt.Dimension(4, 15));
        jTextAreaDescricaoMateriaPrima.setPreferredSize(new java.awt.Dimension(150, 94));
        jScrollPaneDescricaoMateriaPrima.setViewportView(jTextAreaDescricaoMateriaPrima);

        jButtonGuardarMateriaPrima.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonGuardarMateriaPrima.setText("Guardar");
        jButtonGuardarMateriaPrima.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardarMateriaPrimaActionPerformed(evt);
            }
        });

        jButtonSairMateriaPrima.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonSairMateriaPrima.setText("Fechar");
        jButtonSairMateriaPrima.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSairMateriaPrimaActionPerformed(evt);
            }
        });

        jLabel23.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel23.setText("Nova Materia Prima");

        javax.swing.GroupLayout jPanelNovaMateriaPrimaLayout = new javax.swing.GroupLayout(jPanelNovaMateriaPrima);
        jPanelNovaMateriaPrima.setLayout(jPanelNovaMateriaPrimaLayout);
        jPanelNovaMateriaPrimaLayout.setHorizontalGroup(
            jPanelNovaMateriaPrimaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelNovaMateriaPrimaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelNovaMateriaPrimaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelDescricaoMateriaPrima)
                    .addGroup(jPanelNovaMateriaPrimaLayout.createSequentialGroup()
                        .addComponent(jLabelUnidadeMateriaPrima)
                        .addGap(18, 18, 18)
                        .addComponent(jTextFieldUnidadeMateriaPrima, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelNovaMateriaPrimaLayout.createSequentialGroup()
                        .addComponent(jLabelNomeMateriaPrima)
                        .addGap(29, 29, 29)
                        .addGroup(jPanelNovaMateriaPrimaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldNomeMateriaPrima, javax.swing.GroupLayout.PREFERRED_SIZE, 201, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelNovaMateriaPrimaLayout.createSequentialGroup()
                                .addComponent(jLabel23)
                                .addGap(56, 56, 56))))
                    .addGroup(jPanelNovaMateriaPrimaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelNovaMateriaPrimaLayout.createSequentialGroup()
                            .addComponent(jButtonGuardarMateriaPrima)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButtonSairMateriaPrima))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelNovaMateriaPrimaLayout.createSequentialGroup()
                            .addGap(57, 57, 57)
                            .addComponent(jScrollPaneDescricaoMateriaPrima, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(25, Short.MAX_VALUE))
        );
        jPanelNovaMateriaPrimaLayout.setVerticalGroup(
            jPanelNovaMateriaPrimaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelNovaMateriaPrimaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel23)
                .addGap(13, 13, 13)
                .addGroup(jPanelNovaMateriaPrimaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNomeMateriaPrima)
                    .addComponent(jTextFieldNomeMateriaPrima, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(23, 23, 23)
                .addComponent(jLabelDescricaoMateriaPrima)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jScrollPaneDescricaoMateriaPrima, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanelNovaMateriaPrimaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelUnidadeMateriaPrima)
                    .addComponent(jTextFieldUnidadeMateriaPrima, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelNovaMateriaPrimaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonGuardarMateriaPrima)
                    .addComponent(jButtonSairMateriaPrima))
                .addGap(40, 40, 40))
        );

        javax.swing.GroupLayout jDialogNovaMateriaPrimaLayout = new javax.swing.GroupLayout(jDialogNovaMateriaPrima.getContentPane());
        jDialogNovaMateriaPrima.getContentPane().setLayout(jDialogNovaMateriaPrimaLayout);
        jDialogNovaMateriaPrimaLayout.setHorizontalGroup(
            jDialogNovaMateriaPrimaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNovaMateriaPrimaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelNovaMateriaPrima, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(30, Short.MAX_VALUE))
        );
        jDialogNovaMateriaPrimaLayout.setVerticalGroup(
            jDialogNovaMateriaPrimaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNovaMateriaPrimaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelNovaMateriaPrima, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(36, Short.MAX_VALUE))
        );

        jDialogNovoFornecedor.setTitle("Novo Forncedor");
        jDialogNovoFornecedor.setMinimumSize(new java.awt.Dimension(330, 630));

        jLabelNomeFornecedor.setText("Nome");

        jLabelMoradaFornecedor.setText("Morada");

        jLabelCodPostalFornecedor.setText("Codigo Postal");

        jLabelLocalidadeForncedor.setText("Localidade");

        jLabelContactoForncedor.setText("Contacto");

        jLabelEmailFornecedor.setText("Email");

        jLabelNIFFornecedor.setText("NIF");

        jLabelTipoProduto.setText("Tipo Produto");

        jLabel24.setText("Estado");

        jTextFieldCodPostalFornecedor.addCaretListener(new javax.swing.event.CaretListener() {
            public void caretUpdate(javax.swing.event.CaretEvent evt) {
                jTextFieldCodPostalFornecedorCaretUpdate(evt);
            }
        });
        jTextFieldCodPostalFornecedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldCodPostalFornecedorActionPerformed(evt);
            }
        });

        jTextFieldTipoProdutoFornecedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldTipoProdutoFornecedorActionPerformed(evt);
            }
        });

        jButtonGuardarNovoFornecedor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonGuardarNovoFornecedor.setText("Guardar");
        jButtonGuardarNovoFornecedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardarNovoFornecedorActionPerformed(evt);
            }
        });

        jButtonSairNovoFornecedor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonSairNovoFornecedor.setText("Voltar");
        jButtonSairNovoFornecedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSairNovoFornecedorActionPerformed(evt);
            }
        });

        jLabelNovoFornecedor.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabelNovoFornecedor.setText("Novo Fornecedor");

        jLabel25.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N
        jLabel25.setForeground(new java.awt.Color(255, 0, 51));
        jLabel25.setText("*");

        jLabel26.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N
        jLabel26.setForeground(new java.awt.Color(255, 0, 51));
        jLabel26.setText("*");

        jLabel27.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N
        jLabel27.setForeground(new java.awt.Color(255, 0, 51));
        jLabel27.setText("*");

        jLabel28.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N
        jLabel28.setForeground(new java.awt.Color(255, 0, 51));
        jLabel28.setText("*");

        jLabel29.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N
        jLabel29.setForeground(new java.awt.Color(255, 0, 51));
        jLabel29.setText("*");

        jLabel30.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N
        jLabel30.setForeground(new java.awt.Color(255, 0, 51));
        jLabel30.setText("*");

        jLabel31.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N
        jLabel31.setForeground(new java.awt.Color(255, 0, 51));
        jLabel31.setText("*");

        jLabel32.setFont(new java.awt.Font("Tahoma", 1, 10)); // NOI18N
        jLabel32.setForeground(new java.awt.Color(255, 0, 51));
        jLabel32.setText("* - Campos Obrigatorios");

        jComboBoxEstadoFornecedor.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Ativo", "Inativo" }));

        jButtonUpdateFornecedor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/atualizar.png"))); // NOI18N
        jButtonUpdateFornecedor.setText("Atualizar");
        jButtonUpdateFornecedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonUpdateFornecedorActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelNovoFornecedorLayout = new javax.swing.GroupLayout(jPanelNovoFornecedor);
        jPanelNovoFornecedor.setLayout(jPanelNovoFornecedorLayout);
        jPanelNovoFornecedorLayout.setHorizontalGroup(
            jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelNovoFornecedorLayout.createSequentialGroup()
                .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelNovoFornecedorLayout.createSequentialGroup()
                        .addGap(92, 92, 92)
                        .addComponent(jLabelNovoFornecedor))
                    .addGroup(jPanelNovoFornecedorLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanelNovoFornecedorLayout.createSequentialGroup()
                                .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(jPanelNovoFornecedorLayout.createSequentialGroup()
                                        .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabelLocalidadeForncedor)
                                            .addComponent(jLabelCodPostalFornecedor)
                                            .addComponent(jLabelContactoForncedor)
                                            .addComponent(jLabelEmailFornecedor)
                                            .addComponent(jLabelNIFFornecedor)
                                            .addComponent(jLabelTipoProduto)
                                            .addComponent(jLabel24))
                                        .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(jPanelNovoFornecedorLayout.createSequentialGroup()
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addComponent(jTextFieldLocalidadeFornecedor)
                                                    .addComponent(jTextFieldContactoFornecedor)
                                                    .addComponent(jTextFieldEmailFornecedor)
                                                    .addComponent(jTextFieldNIFFornecedor)
                                                    .addComponent(jTextFieldTipoProdutoFornecedor)
                                                    .addGroup(jPanelNovoFornecedorLayout.createSequentialGroup()
                                                        .addComponent(jComboBoxEstadoFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                        .addGap(0, 0, Short.MAX_VALUE))))
                                            .addGroup(jPanelNovoFornecedorLayout.createSequentialGroup()
                                                .addGap(17, 17, 17)
                                                .addComponent(jTextFieldCodPostalFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addGap(0, 0, Short.MAX_VALUE))))
                                    .addGroup(jPanelNovoFornecedorLayout.createSequentialGroup()
                                        .addGap(28, 28, 28)
                                        .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabelNomeFornecedor)
                                            .addComponent(jLabelMoradaFornecedor))
                                        .addGap(18, 18, 18)
                                        .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(jTextFieldMoradaFornecedor)
                                            .addComponent(jTextFieldNomeFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, 157, javax.swing.GroupLayout.PREFERRED_SIZE))))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel25)
                                    .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel28, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel29, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel31, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(jPanelNovoFornecedorLayout.createSequentialGroup()
                                .addComponent(jButtonGuardarNovoFornecedor)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jButtonUpdateFornecedor)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jButtonSairNovoFornecedor)
                                .addGap(10, 10, 10))))
                    .addGroup(jPanelNovoFornecedorLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel32, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelNovoFornecedorLayout.setVerticalGroup(
            jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelNovoFornecedorLayout.createSequentialGroup()
                .addGap(6, 6, 6)
                .addComponent(jLabelNovoFornecedor)
                .addGap(29, 29, 29)
                .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNomeFornecedor)
                    .addComponent(jTextFieldNomeFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel25))
                .addGap(18, 18, 18)
                .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelMoradaFornecedor)
                    .addComponent(jTextFieldMoradaFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel26))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelCodPostalFornecedor)
                    .addComponent(jTextFieldCodPostalFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel27))
                .addGap(18, 18, 18)
                .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelLocalidadeForncedor)
                    .addComponent(jTextFieldLocalidadeFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel28))
                .addGap(18, 18, 18)
                .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelContactoForncedor)
                    .addComponent(jTextFieldContactoFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel29))
                .addGap(18, 18, 18)
                .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelEmailFornecedor)
                    .addComponent(jTextFieldEmailFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNIFFornecedor)
                    .addComponent(jTextFieldNIFFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel30))
                .addGap(18, 18, 18)
                .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTipoProduto)
                    .addComponent(jTextFieldTipoProdutoFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel31))
                .addGap(18, 18, 18)
                .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel24)
                    .addComponent(jComboBoxEstadoFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(20, 20, 20)
                .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonGuardarNovoFornecedor)
                    .addComponent(jButtonSairNovoFornecedor)
                    .addComponent(jButtonUpdateFornecedor))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel32)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogNovoFornecedorLayout = new javax.swing.GroupLayout(jDialogNovoFornecedor.getContentPane());
        jDialogNovoFornecedor.getContentPane().setLayout(jDialogNovoFornecedorLayout);
        jDialogNovoFornecedorLayout.setHorizontalGroup(
            jDialogNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNovoFornecedorLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelNovoFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jDialogNovoFornecedorLayout.setVerticalGroup(
            jDialogNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNovoFornecedorLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelNovoFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(32, Short.MAX_VALUE))
        );

        jDialogNovoInsectocacador.setTitle("NOVO CONTR. DE PRAGA");
        jDialogNovoInsectocacador.setMinimumSize(new java.awt.Dimension(352, 290));

        jLabelNome.setText("Nome");

        jLabelReferencia.setText("Referencia");

        jLabelLocal.setText("Local");

        jTextFieldReferenciaInsecto.setEditable(false);

        jTextFieldNomeInsecto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextFieldNomeInsectoActionPerformed(evt);
            }
        });

        jButtonGuardarInsecto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonGuardarInsecto.setText("Guardar");
        jButtonGuardarInsecto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardarInsectoActionPerformed(evt);
            }
        });

        jButtonSairInsecto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonSairInsecto.setText("Sair");
        jButtonSairInsecto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSairInsectoActionPerformed(evt);
            }
        });

        jButtonActualizarInsecto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/atualizar.png"))); // NOI18N
        jButtonActualizarInsecto.setText("Actualizar (Campos)");
        jButtonActualizarInsecto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonActualizarInsectoActionPerformed(evt);
            }
        });

        jButtonAlterarReferencia.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/atualizar.png"))); // NOI18N
        jButtonAlterarReferencia.setText("Alterar Referência");
        jButtonAlterarReferencia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAlterarReferenciaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelNovoInsectocacadorLayout = new javax.swing.GroupLayout(jPanelNovoInsectocacador);
        jPanelNovoInsectocacador.setLayout(jPanelNovoInsectocacadorLayout);
        jPanelNovoInsectocacadorLayout.setHorizontalGroup(
            jPanelNovoInsectocacadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelNovoInsectocacadorLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelNovoInsectocacadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelNovoInsectocacadorLayout.createSequentialGroup()
                        .addGroup(jPanelNovoInsectocacadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelReferencia)
                            .addComponent(jLabelNome)
                            .addComponent(jLabelLocal))
                        .addGroup(jPanelNovoInsectocacadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelNovoInsectocacadorLayout.createSequentialGroup()
                                .addGap(31, 31, 31)
                                .addComponent(jTextFieldLocalInsecto, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelNovoInsectocacadorLayout.createSequentialGroup()
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanelNovoInsectocacadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jTextFieldReferenciaInsecto, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jTextFieldNomeInsecto, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))))
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanelNovoInsectocacadorLayout.createSequentialGroup()
                        .addComponent(jButtonGuardarInsecto)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonActualizarInsecto)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButtonSairInsecto))
                    .addComponent(jButtonAlterarReferencia, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanelNovoInsectocacadorLayout.setVerticalGroup(
            jPanelNovoInsectocacadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelNovoInsectocacadorLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelNovoInsectocacadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelReferencia)
                    .addComponent(jTextFieldReferenciaInsecto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanelNovoInsectocacadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelNovoInsectocacadorLayout.createSequentialGroup()
                        .addGap(19, 19, 19)
                        .addComponent(jLabelNome)
                        .addGap(28, 28, 28))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelNovoInsectocacadorLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldNomeInsecto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)))
                .addGroup(jPanelNovoInsectocacadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelLocal)
                    .addComponent(jTextFieldLocalInsecto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 42, Short.MAX_VALUE)
                .addGroup(jPanelNovoInsectocacadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonGuardarInsecto)
                    .addComponent(jButtonSairInsecto)
                    .addComponent(jButtonActualizarInsecto))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButtonAlterarReferencia)
                .addGap(14, 14, 14))
        );

        javax.swing.GroupLayout jDialogNovoInsectocacadorLayout = new javax.swing.GroupLayout(jDialogNovoInsectocacador.getContentPane());
        jDialogNovoInsectocacador.getContentPane().setLayout(jDialogNovoInsectocacadorLayout);
        jDialogNovoInsectocacadorLayout.setHorizontalGroup(
            jDialogNovoInsectocacadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNovoInsectocacadorLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelNovoInsectocacador, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jDialogNovoInsectocacadorLayout.setVerticalGroup(
            jDialogNovoInsectocacadorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNovoInsectocacadorLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelNovoInsectocacador, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(12, Short.MAX_VALUE))
        );

        jDialogNovoControloResultados.setTitle("NOVO CONTROLO DE RESULTADOS");
        jDialogNovoControloResultados.setMinimumSize(new java.awt.Dimension(490, 680));

        jPanelNovoControloResultdos.setBorder(javax.swing.BorderFactory.createTitledBorder("Controlo de Resultados"));

        jComboBoxTipo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "-- TIPO--", "CONT. PRAGAS", "EQUIPAMENTO", "ENTRADA", "Outro" }));
        jComboBoxTipo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBoxTipoActionPerformed(evt);
            }
        });

        jComboBoxOpcao.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "--Opção--" }));
        jComboBoxOpcao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBoxOpcaoActionPerformed(evt);
            }
        });

        jLabelTipo.setText("Tipo");

        jLabelOpcao.setText("Opção");

        jLabelResultado.setText("Resultado");

        jLabelFichaTecnica.setText("Ficha Tecnica");

        jLabelDescricao.setText("Problema");

        jComboBoxResultado.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "C", "NC" }));
        jComboBoxResultado.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBoxResultadoActionPerformed(evt);
            }
        });

        jTextAreaDescricao.setColumns(20);
        jTextAreaDescricao.setLineWrap(true);
        jTextAreaDescricao.setRows(5);
        jScrollPaneDescricao.setViewportView(jTextAreaDescricao);

        jLabel2.setText("C - Conforme | NC - Não Conforme");

        jLabel6.setText("UPLOAD");

        jButtonInserir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonInserir.setText("Guardar");
        jButtonInserir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonInserirActionPerformed(evt);
            }
        });

        jButtonCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonCancelar.setText("Fechar");
        jButtonCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarActionPerformed(evt);
            }
        });

        jLabelNomeOutraOpcao.setText("Nome");

        javax.swing.GroupLayout jPanelOutraOpcaoLayout = new javax.swing.GroupLayout(jPanelOutraOpcao);
        jPanelOutraOpcao.setLayout(jPanelOutraOpcaoLayout);
        jPanelOutraOpcaoLayout.setHorizontalGroup(
            jPanelOutraOpcaoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelOutraOpcaoLayout.createSequentialGroup()
                .addComponent(jLabelNomeOutraOpcao)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTextFieldOutraOpcao, javax.swing.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE))
        );
        jPanelOutraOpcaoLayout.setVerticalGroup(
            jPanelOutraOpcaoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelOutraOpcaoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelOutraOpcaoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNomeOutraOpcao)
                    .addComponent(jTextFieldOutraOpcao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jLabelFuncionario.setText("Funcionario:");

        jLabelFuncionarioLogin2.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabelFuncionarioLogin2.setText("jLabel37");

        javax.swing.GroupLayout jPanelNovoControloResultdosLayout = new javax.swing.GroupLayout(jPanelNovoControloResultdos);
        jPanelNovoControloResultdos.setLayout(jPanelNovoControloResultdosLayout);
        jPanelNovoControloResultdosLayout.setHorizontalGroup(
            jPanelNovoControloResultdosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelNovoControloResultdosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelNovoControloResultdosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelNovoControloResultdosLayout.createSequentialGroup()
                        .addGroup(jPanelNovoControloResultdosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelNovoControloResultdosLayout.createSequentialGroup()
                                .addComponent(jLabelFuncionario)
                                .addGap(18, 18, 18)
                                .addComponent(jLabelFuncionarioLogin2))
                            .addGroup(jPanelNovoControloResultdosLayout.createSequentialGroup()
                                .addGap(79, 79, 79)
                                .addComponent(jButtonInserir)
                                .addGap(18, 18, 18)
                                .addComponent(jButtonCancelar)))
                        .addContainerGap(71, Short.MAX_VALUE))
                    .addGroup(jPanelNovoControloResultdosLayout.createSequentialGroup()
                        .addGroup(jPanelNovoControloResultdosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelTipo)
                            .addComponent(jComboBoxTipo, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanelNovoControloResultdosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelOpcao)
                            .addComponent(jPanelOutraOpcao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jPanelNovoControloResultdosLayout.createSequentialGroup()
                                .addComponent(jComboBoxOpcao, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addContainerGap())))
                    .addGroup(jPanelNovoControloResultdosLayout.createSequentialGroup()
                        .addGroup(jPanelNovoControloResultdosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelNovoControloResultdosLayout.createSequentialGroup()
                                .addComponent(jLabelFichaTecnica)
                                .addGap(26, 26, 26)
                                .addComponent(jLabel6))
                            .addGroup(jPanelNovoControloResultdosLayout.createSequentialGroup()
                                .addGap(15, 15, 15)
                                .addComponent(jLabelResultado)
                                .addGap(18, 18, 18)
                                .addGroup(jPanelNovoControloResultdosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jComboBoxResultado, javax.swing.GroupLayout.PREFERRED_SIZE, 118, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel2)))
                            .addGroup(jPanelNovoControloResultdosLayout.createSequentialGroup()
                                .addGap(17, 17, 17)
                                .addComponent(jLabelDescricao)
                                .addGap(18, 18, 18)
                                .addComponent(jScrollPaneDescricao, javax.swing.GroupLayout.PREFERRED_SIZE, 226, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addGap(0, 0, Short.MAX_VALUE))))
        );
        jPanelNovoControloResultdosLayout.setVerticalGroup(
            jPanelNovoControloResultdosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelNovoControloResultdosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelNovoControloResultdosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelFuncionario)
                    .addComponent(jLabelFuncionarioLogin2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelNovoControloResultdosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelTipo)
                    .addComponent(jLabelOpcao))
                .addGap(4, 4, 4)
                .addGroup(jPanelNovoControloResultdosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBoxTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBoxOpcao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanelOutraOpcao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanelNovoControloResultdosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelResultado)
                    .addComponent(jComboBoxResultado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel2)
                .addGap(18, 18, 18)
                .addGroup(jPanelNovoControloResultdosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelFichaTecnica)
                    .addComponent(jLabel6))
                .addGap(18, 18, 18)
                .addGroup(jPanelNovoControloResultdosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelDescricao)
                    .addComponent(jScrollPaneDescricao, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(44, 44, 44)
                .addGroup(jPanelNovoControloResultdosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonInserir)
                    .addComponent(jButtonCancelar))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogNovoControloResultadosLayout = new javax.swing.GroupLayout(jDialogNovoControloResultados.getContentPane());
        jDialogNovoControloResultados.getContentPane().setLayout(jDialogNovoControloResultadosLayout);
        jDialogNovoControloResultadosLayout.setHorizontalGroup(
            jDialogNovoControloResultadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNovoControloResultadosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelNovoControloResultdos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(18, Short.MAX_VALUE))
        );
        jDialogNovoControloResultadosLayout.setVerticalGroup(
            jDialogNovoControloResultadosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNovoControloResultadosLayout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addComponent(jPanelNovoControloResultdos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(29, Short.MAX_VALUE))
        );

        jDialogNaoConformidades.setTitle("NOVA NÃO CONFORMIDADE");
        jDialogNaoConformidades.setMinimumSize(new java.awt.Dimension(730, 710));

        jPanelNaoConformidades.setBorder(javax.swing.BorderFactory.createTitledBorder("Não Conformidade - a preencher"));
        jPanelNaoConformidades.setMinimumSize(new java.awt.Dimension(200, 150));

        jLabelOcorrecniaNaoConformidade.setText("Detalhes");

        jLabelMedidaCorrectivaNaoConformidade.setText("Medida Correctiva");

        jTextAreaOcorrenciaNaoConformidade.setColumns(20);
        jTextAreaOcorrenciaNaoConformidade.setLineWrap(true);
        jTextAreaOcorrenciaNaoConformidade.setRows(5);
        jTextAreaOcorrenciaNaoConformidade.setPreferredSize(new java.awt.Dimension(164, 100));
        jScrollPaneOcorrencia.setViewportView(jTextAreaOcorrenciaNaoConformidade);

        jTextAreaMedidaCorrctivaNaoConformidade.setColumns(20);
        jTextAreaMedidaCorrctivaNaoConformidade.setLineWrap(true);
        jTextAreaMedidaCorrctivaNaoConformidade.setRows(5);
        jScrollPanemedidaCorrectiva.setViewportView(jTextAreaMedidaCorrctivaNaoConformidade);

        jButtonGravarNaoConformidade.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonGravarNaoConformidade.setText("Guardar");
        jButtonGravarNaoConformidade.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGravarNaoConformidadeActionPerformed(evt);
            }
        });

        jButtonCancelarNaoConformidade.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonCancelarNaoConformidade.setText("Fechar");
        jButtonCancelarNaoConformidade.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarNaoConformidadeActionPerformed(evt);
            }
        });

        jLabel7.setText("Funcionario Responsavel");

        jComboBoxNaoConformidadeFuncionarioResponsav.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "--Funcionario--" }));

        jLabel.setText("Funcionario");

        jLabelFuncionarioLogin4.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabelFuncionarioLogin4.setText("jLabel37");

        javax.swing.GroupLayout jPanelNaoConformidadesLayout = new javax.swing.GroupLayout(jPanelNaoConformidades);
        jPanelNaoConformidades.setLayout(jPanelNaoConformidadesLayout);
        jPanelNaoConformidadesLayout.setHorizontalGroup(
            jPanelNaoConformidadesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelNaoConformidadesLayout.createSequentialGroup()
                .addGroup(jPanelNaoConformidadesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelNaoConformidadesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jScrollPanemedidaCorrectiva, javax.swing.GroupLayout.PREFERRED_SIZE, 245, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(jPanelNaoConformidadesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelNaoConformidadesLayout.createSequentialGroup()
                                .addContainerGap()
                                .addComponent(jLabelMedidaCorrectivaNaoConformidade))
                            .addGroup(jPanelNaoConformidadesLayout.createSequentialGroup()
                                .addGap(75, 75, 75)
                                .addComponent(jScrollPaneOcorrencia, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanelNaoConformidadesLayout.createSequentialGroup()
                                .addGap(22, 22, 22)
                                .addComponent(jLabelOcorrecniaNaoConformidade))
                            .addGroup(jPanelNaoConformidadesLayout.createSequentialGroup()
                                .addGap(19, 19, 19)
                                .addComponent(jLabel)
                                .addGap(29, 29, 29)
                                .addComponent(jLabelFuncionarioLogin4, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addGroup(jPanelNaoConformidadesLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel7))
                    .addGroup(jPanelNaoConformidadesLayout.createSequentialGroup()
                        .addGap(81, 81, 81)
                        .addComponent(jComboBoxNaoConformidadeFuncionarioResponsav, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelNaoConformidadesLayout.createSequentialGroup()
                        .addGap(27, 27, 27)
                        .addComponent(jButtonGravarNaoConformidade)
                        .addGap(82, 82, 82)
                        .addComponent(jButtonCancelarNaoConformidade)))
                .addContainerGap(40, Short.MAX_VALUE))
        );
        jPanelNaoConformidadesLayout.setVerticalGroup(
            jPanelNaoConformidadesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelNaoConformidadesLayout.createSequentialGroup()
                .addGap(21, 21, 21)
                .addGroup(jPanelNaoConformidadesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel)
                    .addComponent(jLabelFuncionarioLogin4))
                .addGap(56, 56, 56)
                .addComponent(jLabelOcorrecniaNaoConformidade)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPaneOcorrencia, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jLabelMedidaCorrectivaNaoConformidade)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPanemedidaCorrectiva, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(33, 33, 33)
                .addComponent(jLabel7)
                .addGap(18, 18, 18)
                .addComponent(jComboBoxNaoConformidadeFuncionarioResponsav, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)
                .addGroup(jPanelNaoConformidadesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonGravarNaoConformidade)
                    .addComponent(jButtonCancelarNaoConformidade))
                .addGap(67, 67, 67))
        );

        jLabel8.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel8.setText("NÃO CONFORMIDADE");

        jPanelVerMensagemProblema.setBorder(javax.swing.BorderFactory.createTitledBorder("Problema do Controlo de Resultado"));

        jTextAreaProblemadoControlo.setEditable(false);
        jTextAreaProblemadoControlo.setColumns(20);
        jTextAreaProblemadoControlo.setLineWrap(true);
        jTextAreaProblemadoControlo.setRows(5);
        jScrollPane7.setViewportView(jTextAreaProblemadoControlo);

        javax.swing.GroupLayout jPanelVerMensagemProblemaLayout = new javax.swing.GroupLayout(jPanelVerMensagemProblema);
        jPanelVerMensagemProblema.setLayout(jPanelVerMensagemProblemaLayout);
        jPanelVerMensagemProblemaLayout.setHorizontalGroup(
            jPanelVerMensagemProblemaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelVerMensagemProblemaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 231, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelVerMensagemProblemaLayout.setVerticalGroup(
            jPanelVerMensagemProblemaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelVerMensagemProblemaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 151, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Secção"));

        jTextFieldVerSeccaoDoCR.setEditable(false);

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTextFieldVerSeccaoDoCR)
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTextFieldVerSeccaoDoCR, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogNaoConformidadesLayout = new javax.swing.GroupLayout(jDialogNaoConformidades.getContentPane());
        jDialogNaoConformidades.getContentPane().setLayout(jDialogNaoConformidadesLayout);
        jDialogNaoConformidadesLayout.setHorizontalGroup(
            jDialogNaoConformidadesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNaoConformidadesLayout.createSequentialGroup()
                .addGroup(jDialogNaoConformidadesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogNaoConformidadesLayout.createSequentialGroup()
                        .addGap(111, 111, 111)
                        .addComponent(jLabel8))
                    .addGroup(jDialogNaoConformidadesLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jDialogNaoConformidadesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jPanelVerMensagemProblema, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(20, 20, 20)
                        .addComponent(jPanelNaoConformidades, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(39, Short.MAX_VALUE))
        );
        jDialogNaoConformidadesLayout.setVerticalGroup(
            jDialogNaoConformidadesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNaoConformidadesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel8)
                .addGroup(jDialogNaoConformidadesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogNaoConformidadesLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanelNaoConformidades, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jDialogNaoConformidadesLayout.createSequentialGroup()
                        .addGap(73, 73, 73)
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jPanelVerMensagemProblema, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jDialogMedidasCorrectiva.setTitle("NOVA MEDIDA CORRECTIVA");
        jDialogMedidasCorrectiva.setMinimumSize(new java.awt.Dimension(900, 550));

        jLabelMedidasCorrectivas.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabelMedidasCorrectivas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/medida_correctiva.png"))); // NOI18N
        jLabelMedidasCorrectivas.setText("Medida Correctiva");

        jPanelMedidasCorrectivas.setBorder(javax.swing.BorderFactory.createTitledBorder("Media Correctica da Não Conformidade"));

        jLabelObservacaoMedidasCorrectivas.setText("Observação");

        jScrollPane2.setMinimumSize(new java.awt.Dimension(200, 150));

        jTextAreaObservacaoMedidaCorrectiva.setColumns(20);
        jTextAreaObservacaoMedidaCorrectiva.setLineWrap(true);
        jTextAreaObservacaoMedidaCorrectiva.setRows(5);
        jScrollPane2.setViewportView(jTextAreaObservacaoMedidaCorrectiva);

        jButtonGravarMedidaCorrectiva.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonGravarMedidaCorrectiva.setText("Resolvida");
        jButtonGravarMedidaCorrectiva.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGravarMedidaCorrectivaActionPerformed(evt);
            }
        });

        jButtonCancelarMedidaCorrectiva.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonCancelarMedidaCorrectiva.setText("Voltar");
        jButtonCancelarMedidaCorrectiva.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCancelarMedidaCorrectivaActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelMedidasCorrectivasLayout = new javax.swing.GroupLayout(jPanelMedidasCorrectivas);
        jPanelMedidasCorrectivas.setLayout(jPanelMedidasCorrectivasLayout);
        jPanelMedidasCorrectivasLayout.setHorizontalGroup(
            jPanelMedidasCorrectivasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelMedidasCorrectivasLayout.createSequentialGroup()
                .addGap(0, 0, Short.MAX_VALUE)
                .addGroup(jPanelMedidasCorrectivasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelObservacaoMedidasCorrectivas)
                    .addGroup(jPanelMedidasCorrectivasLayout.createSequentialGroup()
                        .addGap(76, 76, 76)
                        .addGroup(jPanelMedidasCorrectivasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(jPanelMedidasCorrectivasLayout.createSequentialGroup()
                                .addComponent(jButtonGravarMedidaCorrectiva)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jButtonCancelarMedidaCorrectiva))
                            .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 250, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGap(43, 43, 43))
        );
        jPanelMedidasCorrectivasLayout.setVerticalGroup(
            jPanelMedidasCorrectivasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMedidasCorrectivasLayout.createSequentialGroup()
                .addGap(27, 27, 27)
                .addComponent(jLabelObservacaoMedidasCorrectivas)
                .addGap(8, 8, 8)
                .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 140, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(63, 63, 63)
                .addGroup(jPanelMedidasCorrectivasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonGravarMedidaCorrectiva, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonCancelarMedidaCorrectiva))
                .addContainerGap(87, Short.MAX_VALUE))
        );

        jPanelInformacaoAdicional.setBorder(javax.swing.BorderFactory.createTitledBorder("Infor. Adicional"));

        jPanelInformacaoNaoConformidade.setBorder(javax.swing.BorderFactory.createTitledBorder("Dados da Não Conformidade"));

        jLabel40.setText("Detalhes :");

        jLabel41.setText("Medida Correctiva :");

        jTextAreaDetalhesMC.setEditable(false);
        jTextAreaDetalhesMC.setColumns(20);
        jTextAreaDetalhesMC.setLineWrap(true);
        jTextAreaDetalhesMC.setRows(5);
        jScrollPane10.setViewportView(jTextAreaDetalhesMC);

        jTextAreaMedidasCorrectivasMC.setEditable(false);
        jTextAreaMedidasCorrectivasMC.setColumns(20);
        jTextAreaMedidasCorrectivasMC.setLineWrap(true);
        jTextAreaMedidasCorrectivasMC.setRows(5);
        jScrollPane11.setViewportView(jTextAreaMedidasCorrectivasMC);

        javax.swing.GroupLayout jPanelInformacaoNaoConformidadeLayout = new javax.swing.GroupLayout(jPanelInformacaoNaoConformidade);
        jPanelInformacaoNaoConformidade.setLayout(jPanelInformacaoNaoConformidadeLayout);
        jPanelInformacaoNaoConformidadeLayout.setHorizontalGroup(
            jPanelInformacaoNaoConformidadeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelInformacaoNaoConformidadeLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelInformacaoNaoConformidadeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel40)
                    .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(31, 31, 31)
                .addGroup(jPanelInformacaoNaoConformidadeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel41))
                .addContainerGap(15, Short.MAX_VALUE))
        );
        jPanelInformacaoNaoConformidadeLayout.setVerticalGroup(
            jPanelInformacaoNaoConformidadeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelInformacaoNaoConformidadeLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelInformacaoNaoConformidadeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel40)
                    .addComponent(jLabel41))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelInformacaoNaoConformidadeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanelInformacaoControloResultado.setBorder(javax.swing.BorderFactory.createTitledBorder("Dados Do Controlo de Resultado"));

        jLabel38.setText("Secção :");

        jLabel39.setText("Problema :");

        jTextFieldSeccaoMC.setEditable(false);

        jTextAreaProblemaMC.setEditable(false);
        jTextAreaProblemaMC.setColumns(20);
        jTextAreaProblemaMC.setLineWrap(true);
        jTextAreaProblemaMC.setRows(5);
        jScrollPane9.setViewportView(jTextAreaProblemaMC);

        javax.swing.GroupLayout jPanelInformacaoControloResultadoLayout = new javax.swing.GroupLayout(jPanelInformacaoControloResultado);
        jPanelInformacaoControloResultado.setLayout(jPanelInformacaoControloResultadoLayout);
        jPanelInformacaoControloResultadoLayout.setHorizontalGroup(
            jPanelInformacaoControloResultadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelInformacaoControloResultadoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelInformacaoControloResultadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jTextFieldSeccaoMC, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel38))
                .addGap(18, 18, 18)
                .addGroup(jPanelInformacaoControloResultadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel39))
                .addContainerGap(26, Short.MAX_VALUE))
        );
        jPanelInformacaoControloResultadoLayout.setVerticalGroup(
            jPanelInformacaoControloResultadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelInformacaoControloResultadoLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanelInformacaoControloResultadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelInformacaoControloResultadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPanelInformacaoControloResultadoLayout.createSequentialGroup()
                            .addGap(25, 25, 25)
                            .addComponent(jTextFieldSeccaoMC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelInformacaoControloResultadoLayout.createSequentialGroup()
                            .addComponent(jLabel38)
                            .addGap(31, 31, 31)))
                    .addGroup(jPanelInformacaoControloResultadoLayout.createSequentialGroup()
                        .addComponent(jLabel39)
                        .addGap(11, 11, 11)
                        .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanelInformacaoAdicionalLayout = new javax.swing.GroupLayout(jPanelInformacaoAdicional);
        jPanelInformacaoAdicional.setLayout(jPanelInformacaoAdicionalLayout);
        jPanelInformacaoAdicionalLayout.setHorizontalGroup(
            jPanelInformacaoAdicionalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelInformacaoAdicionalLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelInformacaoAdicionalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanelInformacaoControloResultado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanelInformacaoNaoConformidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(30, Short.MAX_VALUE))
        );
        jPanelInformacaoAdicionalLayout.setVerticalGroup(
            jPanelInformacaoAdicionalLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelInformacaoAdicionalLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelInformacaoControloResultado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jPanelInformacaoNaoConformidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(21, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogMedidasCorrectivaLayout = new javax.swing.GroupLayout(jDialogMedidasCorrectiva.getContentPane());
        jDialogMedidasCorrectiva.getContentPane().setLayout(jDialogMedidasCorrectivaLayout);
        jDialogMedidasCorrectivaLayout.setHorizontalGroup(
            jDialogMedidasCorrectivaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogMedidasCorrectivaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelInformacaoAdicional, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jPanelMedidasCorrectivas, javax.swing.GroupLayout.PREFERRED_SIZE, 353, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(19, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogMedidasCorrectivaLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabelMedidasCorrectivas)
                .addGap(321, 321, 321))
        );
        jDialogMedidasCorrectivaLayout.setVerticalGroup(
            jDialogMedidasCorrectivaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogMedidasCorrectivaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelMedidasCorrectivas)
                .addGap(18, 18, 18)
                .addGroup(jDialogMedidasCorrectivaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanelInformacaoAdicional, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanelMedidasCorrectivas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(31, Short.MAX_VALUE))
        );

        jDialogNovaManutencaoEquipamento.setTitle("NOVA MANUTENCAO DE EQUIPAMENTO");
        jDialogNovaManutencaoEquipamento.setMinimumSize(new java.awt.Dimension(360, 510));

        jPanelManutencaoEquipamento.setBorder(javax.swing.BorderFactory.createTitledBorder("Nova Mnutenção de Equipamento"));

        jLabel3.setText("Observações");

        jLabel4.setText("Ficha Tecnica");

        jTextAreaObservacaoManutencaoEquipameto.setColumns(20);
        jTextAreaObservacaoManutencaoEquipameto.setLineWrap(true);
        jTextAreaObservacaoManutencaoEquipameto.setRows(5);
        jScrollPaneObservacaManuetencaoEquipametno.setViewportView(jTextAreaObservacaoManutencaoEquipameto);

        jButtonGravarManutencaoEquipametno.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonGravarManutencaoEquipametno.setText("Guardar");
        jButtonGravarManutencaoEquipametno.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGravarManutencaoEquipametnoActionPerformed(evt);
            }
        });

        jButtonSairManutencaoEquipamento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonSairManutencaoEquipamento.setText("Fechar");
        jButtonSairManutencaoEquipamento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSairManutencaoEquipamentoActionPerformed(evt);
            }
        });

        jLabelFuncionarioResponsavel1.setText("Funcionario:");

        jLabelFuncionariologin3.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabelFuncionariologin3.setText("jLabel37");

        jPanelEquipamentoSeleccionado.setBorder(javax.swing.BorderFactory.createTitledBorder("Equipamento Seleccionado"));

        jTextFieldNomeEquipamentoSeleccionado.setEditable(false);
        jTextFieldNomeEquipamentoSeleccionado.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N

        javax.swing.GroupLayout jPanelEquipamentoSeleccionadoLayout = new javax.swing.GroupLayout(jPanelEquipamentoSeleccionado);
        jPanelEquipamentoSeleccionado.setLayout(jPanelEquipamentoSeleccionadoLayout);
        jPanelEquipamentoSeleccionadoLayout.setHorizontalGroup(
            jPanelEquipamentoSeleccionadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelEquipamentoSeleccionadoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTextFieldNomeEquipamentoSeleccionado, javax.swing.GroupLayout.PREFERRED_SIZE, 233, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelEquipamentoSeleccionadoLayout.setVerticalGroup(
            jPanelEquipamentoSeleccionadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelEquipamentoSeleccionadoLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jTextFieldNomeEquipamentoSeleccionado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanelManutencaoEquipamentoLayout = new javax.swing.GroupLayout(jPanelManutencaoEquipamento);
        jPanelManutencaoEquipamento.setLayout(jPanelManutencaoEquipamentoLayout);
        jPanelManutencaoEquipamentoLayout.setHorizontalGroup(
            jPanelManutencaoEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelManutencaoEquipamentoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelManutencaoEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanelEquipamentoSeleccionado, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(jPanelManutencaoEquipamentoLayout.createSequentialGroup()
                        .addComponent(jButtonGravarManutencaoEquipametno)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButtonSairManutencaoEquipamento))
                    .addGroup(jPanelManutencaoEquipamentoLayout.createSequentialGroup()
                        .addGroup(jPanelManutencaoEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel4)
                            .addGroup(jPanelManutencaoEquipamentoLayout.createSequentialGroup()
                                .addComponent(jLabel3)
                                .addGap(10, 10, 10)
                                .addComponent(jScrollPaneObservacaManuetencaoEquipametno, javax.swing.GroupLayout.PREFERRED_SIZE, 213, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanelManutencaoEquipamentoLayout.createSequentialGroup()
                                .addComponent(jLabelFuncionarioResponsavel1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jLabelFuncionariologin3)))
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelManutencaoEquipamentoLayout.setVerticalGroup(
            jPanelManutencaoEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelManutencaoEquipamentoLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanelEquipamentoSeleccionado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelManutencaoEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelFuncionarioResponsavel1)
                    .addComponent(jLabelFuncionariologin3))
                .addGap(18, 18, 18)
                .addGroup(jPanelManutencaoEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel3)
                    .addGroup(jPanelManutencaoEquipamentoLayout.createSequentialGroup()
                        .addGap(15, 15, 15)
                        .addComponent(jScrollPaneObservacaManuetencaoEquipametno, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(16, 16, 16)
                .addComponent(jLabel4)
                .addGap(40, 40, 40)
                .addGroup(jPanelManutencaoEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonGravarManutencaoEquipametno)
                    .addComponent(jButtonSairManutencaoEquipamento))
                .addGap(351, 351, 351))
        );

        javax.swing.GroupLayout jDialogNovaManutencaoEquipamentoLayout = new javax.swing.GroupLayout(jDialogNovaManutencaoEquipamento.getContentPane());
        jDialogNovaManutencaoEquipamento.getContentPane().setLayout(jDialogNovaManutencaoEquipamentoLayout);
        jDialogNovaManutencaoEquipamentoLayout.setHorizontalGroup(
            jDialogNovaManutencaoEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNovaManutencaoEquipamentoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelManutencaoEquipamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(18, Short.MAX_VALUE))
        );
        jDialogNovaManutencaoEquipamentoLayout.setVerticalGroup(
            jDialogNovaManutencaoEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNovaManutencaoEquipamentoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelManutencaoEquipamento, javax.swing.GroupLayout.PREFERRED_SIZE, 409, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(130, Short.MAX_VALUE))
        );

        jDialogNovaLimpeza.setTitle("NOVA LIMPEZA");
        jDialogNovaLimpeza.setMinimumSize(new java.awt.Dimension(390, 220));

        jLabelFuncionarioResponsavel.setText("Funcionario Responsavel");

        jLabelData.setText("Data");

        jButtonGuardarLimpeza.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonGuardarLimpeza.setText("Guardar");
        jButtonGuardarLimpeza.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardarLimpezaActionPerformed(evt);
            }
        });

        jButtonSairLimpeza.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonSairLimpeza.setText("Fechar");
        jButtonSairLimpeza.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSairLimpezaActionPerformed(evt);
            }
        });

        jLabelFuncionarioLogin5.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabelFuncionarioLogin5.setText("jLabel34");

        jLabelDataNovaLimpeza.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabelDataNovaLimpeza.setText("jLabel15");

        javax.swing.GroupLayout jPanelNovaLimpezaLayout = new javax.swing.GroupLayout(jPanelNovaLimpeza);
        jPanelNovaLimpeza.setLayout(jPanelNovaLimpezaLayout);
        jPanelNovaLimpezaLayout.setHorizontalGroup(
            jPanelNovaLimpezaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelNovaLimpezaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelNovaLimpezaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelNovaLimpezaLayout.createSequentialGroup()
                        .addGroup(jPanelNovaLimpezaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelFuncionarioResponsavel)
                            .addComponent(jLabelData, javax.swing.GroupLayout.Alignment.TRAILING))
                        .addGap(18, 18, 18)
                        .addGroup(jPanelNovaLimpezaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabelFuncionarioLogin5, javax.swing.GroupLayout.PREFERRED_SIZE, 109, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabelDataNovaLimpeza))
                        .addContainerGap(95, Short.MAX_VALUE))
                    .addGroup(jPanelNovaLimpezaLayout.createSequentialGroup()
                        .addComponent(jButtonGuardarLimpeza)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButtonSairLimpeza)
                        .addGap(36, 36, 36))))
        );
        jPanelNovaLimpezaLayout.setVerticalGroup(
            jPanelNovaLimpezaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelNovaLimpezaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelNovaLimpezaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelFuncionarioResponsavel)
                    .addComponent(jLabelFuncionarioLogin5))
                .addGap(18, 18, 18)
                .addGroup(jPanelNovaLimpezaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelData)
                    .addComponent(jLabelDataNovaLimpeza))
                .addGap(18, 18, 18)
                .addGroup(jPanelNovaLimpezaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonGuardarLimpeza)
                    .addComponent(jButtonSairLimpeza))
                .addContainerGap(29, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogNovaLimpezaLayout = new javax.swing.GroupLayout(jDialogNovaLimpeza.getContentPane());
        jDialogNovaLimpeza.getContentPane().setLayout(jDialogNovaLimpezaLayout);
        jDialogNovaLimpezaLayout.setHorizontalGroup(
            jDialogNovaLimpezaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNovaLimpezaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelNovaLimpeza, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(27, Short.MAX_VALUE))
        );
        jDialogNovaLimpezaLayout.setVerticalGroup(
            jDialogNovaLimpezaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNovaLimpezaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelNovaLimpeza, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(22, Short.MAX_VALUE))
        );

        jDialogNovoEquipamento.setTitle("Novo Equipamento");
        jDialogNovoEquipamento.setMinimumSize(new java.awt.Dimension(470, 380));

        jLabelNome1.setText("Nome");

        jLabelDescrição.setText("Descrição");

        jTextAreaObservacaoNovoEquipamento.setColumns(20);
        jTextAreaObservacaoNovoEquipamento.setLineWrap(true);
        jTextAreaObservacaoNovoEquipamento.setRows(5);
        jScrollPaneNovoEquipmanentoObservacao.setViewportView(jTextAreaObservacaoNovoEquipamento);

        jButtonGuardarEquipametno.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonGuardarEquipametno.setText("Guardar");
        jButtonGuardarEquipametno.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardarEquipametnoActionPerformed(evt);
            }
        });

        jButtonSairNovoEquipamento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonSairNovoEquipamento.setText("Fechar");
        jButtonSairNovoEquipamento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSairNovoEquipamentoActionPerformed(evt);
            }
        });

        jButtonActualizar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/atualizar.png"))); // NOI18N
        jButtonActualizar.setText("Actualizar");
        jButtonActualizar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonActualizarActionPerformed(evt);
            }
        });

        jButtonAtualizaNomeEquipamento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/atualizar.png"))); // NOI18N
        jButtonAtualizaNomeEquipamento.setText("Atualizar Nome");
        jButtonAtualizaNomeEquipamento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAtualizaNomeEquipamentoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelNovoEquipamentoLayout = new javax.swing.GroupLayout(jPanelNovoEquipamento);
        jPanelNovoEquipamento.setLayout(jPanelNovoEquipamentoLayout);
        jPanelNovoEquipamentoLayout.setHorizontalGroup(
            jPanelNovoEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelNovoEquipamentoLayout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addGroup(jPanelNovoEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelNome1)
                    .addComponent(jLabelDescrição))
                .addGap(21, 21, 21)
                .addGroup(jPanelNovoEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelNovoEquipamentoLayout.createSequentialGroup()
                        .addComponent(jButtonGuardarEquipametno)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonActualizar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButtonSairNovoEquipamento))
                    .addComponent(jTextFieldNomeEquipamento)
                    .addComponent(jScrollPaneNovoEquipmanentoObservacao)
                    .addComponent(jButtonAtualizaNomeEquipamento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPanelNovoEquipamentoLayout.setVerticalGroup(
            jPanelNovoEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelNovoEquipamentoLayout.createSequentialGroup()
                .addGap(22, 22, 22)
                .addGroup(jPanelNovoEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNome1)
                    .addComponent(jTextFieldNomeEquipamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelNovoEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelDescrição)
                    .addComponent(jScrollPaneNovoEquipmanentoObservacao, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelNovoEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelNovoEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButtonGuardarEquipametno)
                        .addComponent(jButtonActualizar))
                    .addComponent(jButtonSairNovoEquipamento))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButtonAtualizaNomeEquipamento)
                .addContainerGap(47, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogNovoEquipamentoLayout = new javax.swing.GroupLayout(jDialogNovoEquipamento.getContentPane());
        jDialogNovoEquipamento.getContentPane().setLayout(jDialogNovoEquipamentoLayout);
        jDialogNovoEquipamentoLayout.setHorizontalGroup(
            jDialogNovoEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNovoEquipamentoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelNovoEquipamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(31, Short.MAX_VALUE))
        );
        jDialogNovoEquipamentoLayout.setVerticalGroup(
            jDialogNovoEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNovoEquipamentoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelNovoEquipamento, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        jDialogConsultaInsectocacadores.setTitle("CONSULTA CONTR. DE PRAGAS");
        jDialogConsultaInsectocacadores.setMinimumSize(new java.awt.Dimension(850, 480));

        jTableConsultaInsecto.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Referencia", "Nome", "Local"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPaneConsultInsecto.setViewportView(jTableConsultaInsecto);

        jButtonAddNovoInsecto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonAddNovoInsecto.setText("Novo Insecto.");
        jButtonAddNovoInsecto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAddNovoInsectoActionPerformed(evt);
            }
        });

        jButtonSairConsultaInsecto.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonSairConsultaInsecto.setText("Fechar");
        jButtonSairConsultaInsecto.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSairConsultaInsectoActionPerformed(evt);
            }
        });

        jButtonNovaLimpeza.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Limpeza.png"))); // NOI18N
        jButtonNovaLimpeza.setText("Nova Limpeza");
        jButtonNovaLimpeza.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNovaLimpezaActionPerformed(evt);
            }
        });

        jButtonConsultarLimpezas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Consulta.png"))); // NOI18N
        jButtonConsultarLimpezas.setText("Consultar Limpezas");
        jButtonConsultarLimpezas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsultarLimpezasActionPerformed(evt);
            }
        });

        jButtonEditarInsectoca.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/editar.png"))); // NOI18N
        jButtonEditarInsectoca.setText("Editar");
        jButtonEditarInsectoca.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEditarInsectocaActionPerformed(evt);
            }
        });

        jButtonControloResultadosInsectoca.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Nao Conformidades.png"))); // NOI18N
        jButtonControloResultadosInsectoca.setText("Controlo Resultados");
        jButtonControloResultadosInsectoca.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonControloResultadosInsectocaActionPerformed(evt);
            }
        });

        jTextFieldPesquisaInsectocacador.addCaretListener(new javax.swing.event.CaretListener() {
            public void caretUpdate(javax.swing.event.CaretEvent evt) {
                jTextFieldPesquisaInsectocacadorCaretUpdate(evt);
            }
        });

        jLabelPesquisarInsectocacador.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/pesquisar.png"))); // NOI18N
        jLabelPesquisarInsectocacador.setText("Pesquisar");

        jButtonVerInsectocacadoresInativos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/inativos.png"))); // NOI18N
        jButtonVerInsectocacadoresInativos.setText("Ver Inativas");
        jButtonVerInsectocacadoresInativos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVerInsectocacadoresInativosActionPerformed(evt);
            }
        });

        jButtonAlterarEstadoInsectocacadores.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/trocar.png"))); // NOI18N
        jButtonAlterarEstadoInsectocacadores.setText("Alterar Estado");
        jButtonAlterarEstadoInsectocacadores.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAlterarEstadoInsectocacadoresActionPerformed(evt);
            }
        });

        jLabelConsultaControloPragas.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabelConsultaControloPragas.setText("Consulta Controlo de Pragas - Ativos");

        javax.swing.GroupLayout jPanelConsultaInsectoLayout = new javax.swing.GroupLayout(jPanelConsultaInsecto);
        jPanelConsultaInsecto.setLayout(jPanelConsultaInsectoLayout);
        jPanelConsultaInsectoLayout.setHorizontalGroup(
            jPanelConsultaInsectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultaInsectoLayout.createSequentialGroup()
                .addGroup(jPanelConsultaInsectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelConsultaInsectoLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanelConsultaInsectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jScrollPaneConsultInsecto)
                            .addGroup(jPanelConsultaInsectoLayout.createSequentialGroup()
                                .addComponent(jButtonVerInsectocacadoresInativos)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jButtonAddNovoInsecto)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jButtonNovaLimpeza)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jButtonSairConsultaInsecto))
                            .addGroup(jPanelConsultaInsectoLayout.createSequentialGroup()
                                .addGroup(jPanelConsultaInsectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jTextFieldPesquisaInsectocacador, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabelPesquisarInsectocacador))
                                .addGap(18, 18, 18)
                                .addComponent(jButtonConsultarLimpezas)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jButtonEditarInsectoca)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jButtonAlterarEstadoInsectocacadores)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jButtonControloResultadosInsectoca))))
                    .addGroup(jPanelConsultaInsectoLayout.createSequentialGroup()
                        .addGap(226, 226, 226)
                        .addComponent(jLabelConsultaControloPragas)))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelConsultaInsectoLayout.setVerticalGroup(
            jPanelConsultaInsectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultaInsectoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelConsultaControloPragas)
                .addGap(16, 16, 16)
                .addGroup(jPanelConsultaInsectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPanelConsultaInsectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButtonEditarInsectoca)
                        .addComponent(jButtonControloResultadosInsectoca)
                        .addComponent(jButtonConsultarLimpezas)
                        .addComponent(jButtonAlterarEstadoInsectocacadores))
                    .addGroup(jPanelConsultaInsectoLayout.createSequentialGroup()
                        .addComponent(jLabelPesquisarInsectocacador)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldPesquisaInsectocacador, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPaneConsultInsecto, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addGroup(jPanelConsultaInsectoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonAddNovoInsecto)
                    .addComponent(jButtonNovaLimpeza)
                    .addComponent(jButtonVerInsectocacadoresInativos)
                    .addComponent(jButtonSairConsultaInsecto))
                .addContainerGap(47, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogConsultaInsectocacadoresLayout = new javax.swing.GroupLayout(jDialogConsultaInsectocacadores.getContentPane());
        jDialogConsultaInsectocacadores.getContentPane().setLayout(jDialogConsultaInsectocacadoresLayout);
        jDialogConsultaInsectocacadoresLayout.setHorizontalGroup(
            jDialogConsultaInsectocacadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaInsectocacadoresLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaInsecto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(26, Short.MAX_VALUE))
        );
        jDialogConsultaInsectocacadoresLayout.setVerticalGroup(
            jDialogConsultaInsectocacadoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaInsectocacadoresLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaInsecto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(38, Short.MAX_VALUE))
        );

        jDialogConsultaLimpezas.setTitle("CONSULTA LIMPEZAS");
        jDialogConsultaLimpezas.setMinimumSize(new java.awt.Dimension(621, 324));

        jTableConsultaLimpezas.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Controlo de Praga", "Funcionario", "Data"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPaneConsultaLimpezas.setViewportView(jTableConsultaLimpezas);

        jButtonNovaLimpezaConsultaLimpezas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonNovaLimpezaConsultaLimpezas.setText("Nova Limpeza");
        jButtonNovaLimpezaConsultaLimpezas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNovaLimpezaConsultaLimpezasActionPerformed(evt);
            }
        });

        jButtonSairConsultaLimpezas.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonSairConsultaLimpezas.setText("Fechar");
        jButtonSairConsultaLimpezas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSairConsultaLimpezasActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelConsultaLimpezasLayout = new javax.swing.GroupLayout(jPanelConsultaLimpezas);
        jPanelConsultaLimpezas.setLayout(jPanelConsultaLimpezasLayout);
        jPanelConsultaLimpezasLayout.setHorizontalGroup(
            jPanelConsultaLimpezasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultaLimpezasLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelConsultaLimpezasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPaneConsultaLimpezas, javax.swing.GroupLayout.DEFAULT_SIZE, 573, Short.MAX_VALUE)
                    .addGroup(jPanelConsultaLimpezasLayout.createSequentialGroup()
                        .addComponent(jButtonNovaLimpezaConsultaLimpezas)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButtonSairConsultaLimpezas)))
                .addContainerGap())
        );
        jPanelConsultaLimpezasLayout.setVerticalGroup(
            jPanelConsultaLimpezasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelConsultaLimpezasLayout.createSequentialGroup()
                .addContainerGap(46, Short.MAX_VALUE)
                .addComponent(jScrollPaneConsultaLimpezas, javax.swing.GroupLayout.PREFERRED_SIZE, 165, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelConsultaLimpezasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonNovaLimpezaConsultaLimpezas)
                    .addComponent(jButtonSairConsultaLimpezas))
                .addGap(12, 12, 12))
        );

        javax.swing.GroupLayout jDialogConsultaLimpezasLayout = new javax.swing.GroupLayout(jDialogConsultaLimpezas.getContentPane());
        jDialogConsultaLimpezas.getContentPane().setLayout(jDialogConsultaLimpezasLayout);
        jDialogConsultaLimpezasLayout.setHorizontalGroup(
            jDialogConsultaLimpezasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaLimpezasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaLimpezas, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jDialogConsultaLimpezasLayout.setVerticalGroup(
            jDialogConsultaLimpezasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaLimpezasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaLimpezas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(38, Short.MAX_VALUE))
        );

        jDialogConsultaEquipamentos.setTitle("CONSULTA EQUIPAMENTOS");
        jDialogConsultaEquipamentos.setMinimumSize(new java.awt.Dimension(880, 400));

        jTableConsultaEquipamentos.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Nome", "Observação"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPaneConsultaEquipamentos.setViewportView(jTableConsultaEquipamentos);

        jButtonNovoEquipamento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonNovoEquipamento.setText("Novo Equipamento");
        jButtonNovoEquipamento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNovoEquipamentoActionPerformed(evt);
            }
        });

        jButtonSairConsultaEquipamentos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonSairConsultaEquipamentos.setText("Sair");
        jButtonSairConsultaEquipamentos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSairConsultaEquipamentosActionPerformed(evt);
            }
        });

        jButtonManutencaoConsultaEquipamentos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/manutencao2.png"))); // NOI18N
        jButtonManutencaoConsultaEquipamentos.setText("Nova Manutenção");
        jButtonManutencaoConsultaEquipamentos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonManutencaoConsultaEquipamentosActionPerformed(evt);
            }
        });

        jButtonControloResultados.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Nao Conformidades.png"))); // NOI18N
        jButtonControloResultados.setText("Controlo de Resultados");
        jButtonControloResultados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonControloResultadosActionPerformed(evt);
            }
        });

        jButtonEditarEquipamento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/editar.png"))); // NOI18N
        jButtonEditarEquipamento.setText("Editar Equipamento");
        jButtonEditarEquipamento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEditarEquipamentoActionPerformed(evt);
            }
        });

        jButtonConsultaManutencao.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Consulta.png"))); // NOI18N
        jButtonConsultaManutencao.setText("Consulta Manutenção");
        jButtonConsultaManutencao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsultaManutencaoActionPerformed(evt);
            }
        });

        jTextFieldPesquisaEquipamento.addCaretListener(new javax.swing.event.CaretListener() {
            public void caretUpdate(javax.swing.event.CaretEvent evt) {
                jTextFieldPesquisaEquipamentoCaretUpdate(evt);
            }
        });

        jLabelPesquisarEquipamento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/pesquisar.png"))); // NOI18N
        jLabelPesquisarEquipamento.setText("Pesquisar");

        jButtonAlterarEstadoEquipamento.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/trocar.png"))); // NOI18N
        jButtonAlterarEstadoEquipamento.setText("Alterar Estado");
        jButtonAlterarEstadoEquipamento.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAlterarEstadoEquipamentoActionPerformed(evt);
            }
        });

        jButtonVerInativasEquipamentos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/inativos.png"))); // NOI18N
        jButtonVerInativasEquipamentos.setText("Ver Inativas");
        jButtonVerInativasEquipamentos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVerInativasEquipamentosActionPerformed(evt);
            }
        });

        jLabelConsultarEquipamentos.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabelConsultarEquipamentos.setText("Consultar Equipamentos - Ativos");

        javax.swing.GroupLayout jPanelConsultaEquipamentosLayout = new javax.swing.GroupLayout(jPanelConsultaEquipamentos);
        jPanelConsultaEquipamentos.setLayout(jPanelConsultaEquipamentosLayout);
        jPanelConsultaEquipamentosLayout.setHorizontalGroup(
            jPanelConsultaEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultaEquipamentosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelConsultaEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelConsultaEquipamentosLayout.createSequentialGroup()
                        .addComponent(jLabelPesquisarEquipamento)
                        .addGap(149, 149, 149)
                        .addComponent(jLabelConsultarEquipamentos))
                    .addGroup(jPanelConsultaEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jScrollPaneConsultaEquipamentos)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelConsultaEquipamentosLayout.createSequentialGroup()
                            .addComponent(jTextFieldPesquisaEquipamento, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jButtonConsultaManutencao)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButtonAlterarEstadoEquipamento)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButtonControloResultados))
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanelConsultaEquipamentosLayout.createSequentialGroup()
                            .addComponent(jButtonVerInativasEquipamentos)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButtonNovoEquipamento)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButtonManutencaoConsultaEquipamentos)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jButtonEditarEquipamento)
                            .addGap(56, 56, 56)
                            .addComponent(jButtonSairConsultaEquipamentos))))
                .addContainerGap(60, Short.MAX_VALUE))
        );
        jPanelConsultaEquipamentosLayout.setVerticalGroup(
            jPanelConsultaEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultaEquipamentosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelConsultaEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelConsultarEquipamentos)
                    .addComponent(jLabelPesquisarEquipamento))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelConsultaEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonControloResultados)
                    .addComponent(jButtonConsultaManutencao)
                    .addComponent(jTextFieldPesquisaEquipamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonAlterarEstadoEquipamento))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPaneConsultaEquipamentos, javax.swing.GroupLayout.PREFERRED_SIZE, 194, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelConsultaEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonNovoEquipamento)
                    .addComponent(jButtonSairConsultaEquipamentos)
                    .addComponent(jButtonManutencaoConsultaEquipamentos)
                    .addComponent(jButtonEditarEquipamento)
                    .addComponent(jButtonVerInativasEquipamentos))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogConsultaEquipamentosLayout = new javax.swing.GroupLayout(jDialogConsultaEquipamentos.getContentPane());
        jDialogConsultaEquipamentos.getContentPane().setLayout(jDialogConsultaEquipamentosLayout);
        jDialogConsultaEquipamentosLayout.setHorizontalGroup(
            jDialogConsultaEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaEquipamentosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaEquipamentos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        jDialogConsultaEquipamentosLayout.setVerticalGroup(
            jDialogConsultaEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaEquipamentosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaEquipamentos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(41, Short.MAX_VALUE))
        );

        jDialogConsultaManutencaoEquipamentos.setTitle("CONSULTA MANUTENÇÃO DE EQUIPAMENTOS");
        jDialogConsultaManutencaoEquipamentos.setMinimumSize(new java.awt.Dimension(673, 351));

        jPanelConsultaManutencaoEquipamentos.setMinimumSize(new java.awt.Dimension(642, 302));

        jTableConsultaManutencaoEquipamentos.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Equipamento", "Data", "Observações", "Ficha Tecnica"
            }
        ));
        jScrollPaneConsultaManutencaoEquipamentos.setViewportView(jTableConsultaManutencaoEquipamentos);

        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButton2.setText("Voltar");
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelConsultaManutencaoEquipamentosLayout = new javax.swing.GroupLayout(jPanelConsultaManutencaoEquipamentos);
        jPanelConsultaManutencaoEquipamentos.setLayout(jPanelConsultaManutencaoEquipamentosLayout);
        jPanelConsultaManutencaoEquipamentosLayout.setHorizontalGroup(
            jPanelConsultaManutencaoEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultaManutencaoEquipamentosLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelConsultaManutencaoEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPaneConsultaManutencaoEquipamentos, javax.swing.GroupLayout.PREFERRED_SIZE, 579, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton2))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelConsultaManutencaoEquipamentosLayout.setVerticalGroup(
            jPanelConsultaManutencaoEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultaManutencaoEquipamentosLayout.createSequentialGroup()
                .addGap(26, 26, 26)
                .addComponent(jScrollPaneConsultaManutencaoEquipamentos, javax.swing.GroupLayout.PREFERRED_SIZE, 164, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButton2)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogConsultaManutencaoEquipamentosLayout = new javax.swing.GroupLayout(jDialogConsultaManutencaoEquipamentos.getContentPane());
        jDialogConsultaManutencaoEquipamentos.getContentPane().setLayout(jDialogConsultaManutencaoEquipamentosLayout);
        jDialogConsultaManutencaoEquipamentosLayout.setHorizontalGroup(
            jDialogConsultaManutencaoEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaManutencaoEquipamentosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaManutencaoEquipamentos, javax.swing.GroupLayout.PREFERRED_SIZE, 620, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(31, Short.MAX_VALUE))
        );
        jDialogConsultaManutencaoEquipamentosLayout.setVerticalGroup(
            jDialogConsultaManutencaoEquipamentosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaManutencaoEquipamentosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaManutencaoEquipamentos, javax.swing.GroupLayout.PREFERRED_SIZE, 262, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(66, Short.MAX_VALUE))
        );

        jDialogConsultarControlos.setTitle("CONSULTAR CONTROLOS DE RESULTADOS");
        jDialogConsultarControlos.setMinimumSize(new java.awt.Dimension(1040, 492));

        jLabel9.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabel9.setText("Consultar Controlos");

        jTableConsultarControlos.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Funcionario", "Secção", "Data", "Estado", "Problema"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTableConsultarControlos.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTableConsultarControlosMouseClicked(evt);
            }
        });
        jScrollPaneConsultarControlos.setViewportView(jTableConsultarControlos);
        if (jTableConsultarControlos.getColumnModel().getColumnCount() > 0) {
            jTableConsultarControlos.getColumnModel().getColumn(3).setMinWidth(60);
            jTableConsultarControlos.getColumnModel().getColumn(3).setMaxWidth(80);
        }

        jButtonFecharConsultaControlosResultados.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonFecharConsultaControlosResultados.setText("Fechar");
        jButtonFecharConsultaControlosResultados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonFecharConsultaControlosResultadosActionPerformed(evt);
            }
        });

        jButtonCriaNovoControloResultados.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/novo.png"))); // NOI18N
        jButtonCriaNovoControloResultados.setText("Criar Novo");
        jButtonCriaNovoControloResultados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonCriaNovoControloResultadosActionPerformed(evt);
            }
        });

        jButtonVerNaoConformidade.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Nao Conformidades.png"))); // NOI18N
        jButtonVerNaoConformidade.setText("Ver Não Conformidade");
        jButtonVerNaoConformidade.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVerNaoConformidadeActionPerformed(evt);
            }
        });

        jComboBoxSeccao.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "--Secção--", "ENTRADA", "EQUIPAMENTO", "CONT. PRAGAS", "OUTROS" }));
        jComboBoxSeccao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBoxSeccaoActionPerformed(evt);
            }
        });

        jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/pesquisar.png"))); // NOI18N
        jLabel10.setText("Secção");

        jButtonVerNaoConformidadeEntrada.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Consltas_Menu.png"))); // NOI18N
        jButtonVerNaoConformidadeEntrada.setText("Ver Nao Conformidade (Entrada)");
        jButtonVerNaoConformidadeEntrada.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVerNaoConformidadeEntradaActionPerformed(evt);
            }
        });

        jLabel12.setText("C - Conforme");

        jLabel36.setText("NC - Não Conforme");

        jButtonVerHistoricoControlo.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/historico.png"))); // NOI18N
        jButtonVerHistoricoControlo.setText("Ver Historico");
        jButtonVerHistoricoControlo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVerHistoricoControloActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelConsultaControlosLayout = new javax.swing.GroupLayout(jPanelConsultaControlos);
        jPanelConsultaControlos.setLayout(jPanelConsultaControlosLayout);
        jPanelConsultaControlosLayout.setHorizontalGroup(
            jPanelConsultaControlosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultaControlosLayout.createSequentialGroup()
                .addGap(18, 18, 18)
                .addGroup(jPanelConsultaControlosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPaneConsultarControlos)
                    .addGroup(jPanelConsultaControlosLayout.createSequentialGroup()
                        .addComponent(jButtonCriaNovoControloResultados)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonVerHistoricoControlo)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButtonFecharConsultaControlosResultados))
                    .addGroup(jPanelConsultaControlosLayout.createSequentialGroup()
                        .addComponent(jLabel10)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jComboBoxSeccao, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(39, 39, 39)
                        .addGroup(jPanelConsultaControlosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel12)
                            .addComponent(jLabel36))
                        .addGap(4, 4, Short.MAX_VALUE)
                        .addComponent(jButtonVerNaoConformidadeEntrada)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonVerNaoConformidade)))
                .addContainerGap())
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelConsultaControlosLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jLabel9)
                .addGap(397, 397, 397))
        );
        jPanelConsultaControlosLayout.setVerticalGroup(
            jPanelConsultaControlosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultaControlosLayout.createSequentialGroup()
                .addGap(26, 26, 26)
                .addComponent(jLabel9)
                .addGroup(jPanelConsultaControlosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelConsultaControlosLayout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addGroup(jPanelConsultaControlosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButtonVerNaoConformidade, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanelConsultaControlosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(jComboBoxSeccao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel10)
                                .addComponent(jButtonVerNaoConformidadeEntrada)
                                .addComponent(jLabel36)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jScrollPaneConsultarControlos, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanelConsultaControlosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButtonFecharConsultaControlosResultados)
                            .addComponent(jButtonCriaNovoControloResultados)
                            .addComponent(jButtonVerHistoricoControlo)))
                    .addGroup(jPanelConsultaControlosLayout.createSequentialGroup()
                        .addGap(13, 13, 13)
                        .addComponent(jLabel12)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogConsultarControlosLayout = new javax.swing.GroupLayout(jDialogConsultarControlos.getContentPane());
        jDialogConsultarControlos.getContentPane().setLayout(jDialogConsultarControlosLayout);
        jDialogConsultarControlosLayout.setHorizontalGroup(
            jDialogConsultarControlosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultarControlosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaControlos, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(28, 28, 28))
        );
        jDialogConsultarControlosLayout.setVerticalGroup(
            jDialogConsultarControlosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultarControlosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaControlos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(30, Short.MAX_VALUE))
        );

        jDialogConsultaNaoConformidades.setTitle("CONSULTAR NÃO CONFORMIDADES");
        jDialogConsultaNaoConformidades.setMinimumSize(new java.awt.Dimension(800, 500));

        jPanelConsultaNaoConformidades.setLayout(null);

        jLabelNaoConformidades.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Nao Conformidades.png"))); // NOI18N
        jLabelNaoConformidades.setText("CONSULTA NAO CONFORMIDADES");
        jPanelConsultaNaoConformidades.add(jLabelNaoConformidades);
        jLabelNaoConformidades.setBounds(10, 11, 205, 32);

        jTableNaoConformidades.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Funcionario", "Data(Ñ Confor)", "Detalhes", "Medida Correct.", "Func. Responsav."
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPaneNaoConformidades.setViewportView(jTableNaoConformidades);

        jPanelConsultaNaoConformidades.add(jScrollPaneNaoConformidades);
        jScrollPaneNaoConformidades.setBounds(10, 220, 735, 178);

        jButtonVoltar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonVoltar.setText("Fechar");
        jButtonVoltar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVoltarActionPerformed(evt);
            }
        });
        jPanelConsultaNaoConformidades.add(jButtonVoltar);
        jButtonVoltar.setBounds(610, 410, 131, 41);

        jButtonAddNovaNaoConformidade.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Nao Conformidades.png"))); // NOI18N
        jButtonAddNovaNaoConformidade.setText("Nova Não Conformidade");
        jButtonAddNovaNaoConformidade.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAddNovaNaoConformidadeActionPerformed(evt);
            }
        });
        jPanelConsultaNaoConformidades.add(jButtonAddNovaNaoConformidade);
        jButtonAddNovaNaoConformidade.setBounds(10, 410, 200, 41);

        jButtonAddMedidaCorrectiva.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/medida_correctiva.png"))); // NOI18N
        jButtonAddMedidaCorrectiva.setText("Aplicar Medida Correctiva");
        jButtonAddMedidaCorrectiva.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAddMedidaCorrectivaActionPerformed(evt);
            }
        });
        jPanelConsultaNaoConformidades.add(jButtonAddMedidaCorrectiva);
        jButtonAddMedidaCorrectiva.setBounds(560, 170, 191, 41);

        jPanelMostraDadosControloResultado.setBorder(javax.swing.BorderFactory.createTitledBorder("Dados do Controlo Resultado"));

        jLabelSeccaoNC.setText("Secção : ");

        jLabelProblemaNC.setText("Problema :");

        jTextFieldVerSeccaoNC.setEditable(false);

        jTextAreaVerProblemaNC.setEditable(false);
        jTextAreaVerProblemaNC.setColumns(10);
        jTextAreaVerProblemaNC.setLineWrap(true);
        jTextAreaVerProblemaNC.setRows(3);
        jTextAreaVerProblemaNC.setTabSize(4);
        jScrollPane8.setViewportView(jTextAreaVerProblemaNC);

        javax.swing.GroupLayout jPanelMostraDadosControloResultadoLayout = new javax.swing.GroupLayout(jPanelMostraDadosControloResultado);
        jPanelMostraDadosControloResultado.setLayout(jPanelMostraDadosControloResultadoLayout);
        jPanelMostraDadosControloResultadoLayout.setHorizontalGroup(
            jPanelMostraDadosControloResultadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMostraDadosControloResultadoLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelMostraDadosControloResultadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelSeccaoNC)
                    .addComponent(jTextFieldVerSeccaoNC, javax.swing.GroupLayout.PREFERRED_SIZE, 216, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPanelMostraDadosControloResultadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 215, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabelProblemaNC))
                .addContainerGap(69, Short.MAX_VALUE))
        );
        jPanelMostraDadosControloResultadoLayout.setVerticalGroup(
            jPanelMostraDadosControloResultadoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMostraDadosControloResultadoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelSeccaoNC)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTextFieldVerSeccaoNC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(jPanelMostraDadosControloResultadoLayout.createSequentialGroup()
                .addComponent(jLabelProblemaNC)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 22, Short.MAX_VALUE))
        );

        jPanelConsultaNaoConformidades.add(jPanelMostraDadosControloResultado);
        jPanelMostraDadosControloResultado.setBounds(10, 61, 540, 140);

        javax.swing.GroupLayout jDialogConsultaNaoConformidadesLayout = new javax.swing.GroupLayout(jDialogConsultaNaoConformidades.getContentPane());
        jDialogConsultaNaoConformidades.getContentPane().setLayout(jDialogConsultaNaoConformidadesLayout);
        jDialogConsultaNaoConformidadesLayout.setHorizontalGroup(
            jDialogConsultaNaoConformidadesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaNaoConformidadesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaNaoConformidades, javax.swing.GroupLayout.PREFERRED_SIZE, 772, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(18, Short.MAX_VALUE))
        );
        jDialogConsultaNaoConformidadesLayout.setVerticalGroup(
            jDialogConsultaNaoConformidadesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaNaoConformidadesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaNaoConformidades, javax.swing.GroupLayout.PREFERRED_SIZE, 469, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(20, Short.MAX_VALUE))
        );

        jDialogConsultarMedidasCorrectivas.setTitle("CONSULTAR MEDIDAS CORRECCTIVAS");
        jDialogConsultarMedidasCorrectivas.setMinimumSize(new java.awt.Dimension(740, 380));

        jLabelConsultaMedidasCorrectivas.setFont(new java.awt.Font("Tahoma", 1, 18)); // NOI18N
        jLabelConsultaMedidasCorrectivas.setText("Consulta Medidas Correctivas");

        jTableConsultaMedidasCorrectivas.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Funcionario", "Data", "Correctiva", "Observações"
            }
        ));
        jScrollPaneConsultaMedidasCorrectivas.setViewportView(jTableConsultaMedidasCorrectivas);

        jButtonVoltarMedidasCorrectivas.setText("Voltar");
        jButtonVoltarMedidasCorrectivas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVoltarMedidasCorrectivasActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addGap(153, 153, 153)
                        .addComponent(jLabelConsultaMedidasCorrectivas))
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addGap(22, 22, 22)
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButtonVoltarMedidasCorrectivas)
                            .addComponent(jScrollPaneConsultaMedidasCorrectivas, javax.swing.GroupLayout.PREFERRED_SIZE, 622, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(26, Short.MAX_VALUE))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelConsultaMedidasCorrectivas)
                .addGap(31, 31, 31)
                .addComponent(jScrollPaneConsultaMedidasCorrectivas, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButtonVoltarMedidasCorrectivas)
                .addContainerGap(42, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogConsultarMedidasCorrectivasLayout = new javax.swing.GroupLayout(jDialogConsultarMedidasCorrectivas.getContentPane());
        jDialogConsultarMedidasCorrectivas.getContentPane().setLayout(jDialogConsultarMedidasCorrectivasLayout);
        jDialogConsultarMedidasCorrectivasLayout.setHorizontalGroup(
            jDialogConsultarMedidasCorrectivasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultarMedidasCorrectivasLayout.createSequentialGroup()
                .addGap(50, 50, 50)
                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(204, Short.MAX_VALUE))
        );
        jDialogConsultarMedidasCorrectivasLayout.setVerticalGroup(
            jDialogConsultarMedidasCorrectivasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultarMedidasCorrectivasLayout.createSequentialGroup()
                .addGap(50, 50, 50)
                .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(228, Short.MAX_VALUE))
        );

        jDialogConsultaFornecedores.setMinimumSize(new java.awt.Dimension(800, 450));

        jLabelConsultaFornecedores.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabelConsultaFornecedores.setText("Consulta Fornecedores");

        jTableConsultaFornecedor.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "#", "Nome", "NIF", "Tipo Produto"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane1.setViewportView(jTableConsultaFornecedor);
        if (jTableConsultaFornecedor.getColumnModel().getColumnCount() > 0) {
            jTableConsultaFornecedor.getColumnModel().getColumn(0).setMinWidth(20);
            jTableConsultaFornecedor.getColumnModel().getColumn(0).setMaxWidth(30);
        }

        jButtonFecharConsultaFornecedores.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonFecharConsultaFornecedores.setText("Fechar");
        jButtonFecharConsultaFornecedores.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonFecharConsultaFornecedoresActionPerformed(evt);
            }
        });

        jButtonFornecedoresInativos.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/inativos.png"))); // NOI18N
        jButtonFornecedoresInativos.setText("Ver Inativos");
        jButtonFornecedoresInativos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonFornecedoresInativosActionPerformed(evt);
            }
        });

        jButtonEditarFornecedor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/editar.png"))); // NOI18N
        jButtonEditarFornecedor.setText("Editar");
        jButtonEditarFornecedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEditarFornecedorActionPerformed(evt);
            }
        });

        jButtonAlterarEstadoFornecedor.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/trocar.png"))); // NOI18N
        jButtonAlterarEstadoFornecedor.setText("Alterar Estado");
        jButtonAlterarEstadoFornecedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAlterarEstadoFornecedorActionPerformed(evt);
            }
        });

        jLabel34.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/pesquisar.png"))); // NOI18N
        jLabel34.setText("Pesquisar");

        jTextFieldPesquisarFornecedor.addCaretListener(new javax.swing.event.CaretListener() {
            public void caretUpdate(javax.swing.event.CaretEvent evt) {
                jTextFieldPesquisarFornecedorCaretUpdate(evt);
            }
        });

        javax.swing.GroupLayout jPanelConsultaFornecedoresLayout = new javax.swing.GroupLayout(jPanelConsultaFornecedores);
        jPanelConsultaFornecedores.setLayout(jPanelConsultaFornecedoresLayout);
        jPanelConsultaFornecedoresLayout.setHorizontalGroup(
            jPanelConsultaFornecedoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultaFornecedoresLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelConsultaFornecedoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 760, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelConsultaFornecedoresLayout.createSequentialGroup()
                        .addComponent(jButtonFornecedoresInativos)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButtonEditarFornecedor)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jButtonFecharConsultaFornecedores))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelConsultaFornecedoresLayout.createSequentialGroup()
                        .addComponent(jLabel34)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldPesquisarFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButtonAlterarEstadoFornecedor)))
                .addContainerGap())
            .addGroup(jPanelConsultaFornecedoresLayout.createSequentialGroup()
                .addGap(165, 165, 165)
                .addComponent(jLabelConsultaFornecedores)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelConsultaFornecedoresLayout.setVerticalGroup(
            jPanelConsultaFornecedoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultaFornecedoresLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelConsultaFornecedores)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanelConsultaFornecedoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonAlterarEstadoFornecedor)
                    .addComponent(jLabel34)
                    .addComponent(jTextFieldPesquisarFornecedor, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 258, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelConsultaFornecedoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelConsultaFornecedoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jButtonFecharConsultaFornecedores)
                        .addComponent(jButtonEditarFornecedor))
                    .addComponent(jButtonFornecedoresInativos))
                .addGap(29, 29, 29))
        );

        javax.swing.GroupLayout jDialogConsultaFornecedoresLayout = new javax.swing.GroupLayout(jDialogConsultaFornecedores.getContentPane());
        jDialogConsultaFornecedores.getContentPane().setLayout(jDialogConsultaFornecedoresLayout);
        jDialogConsultaFornecedoresLayout.setHorizontalGroup(
            jDialogConsultaFornecedoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaFornecedoresLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaFornecedores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jDialogConsultaFornecedoresLayout.setVerticalGroup(
            jDialogConsultaFornecedoresLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaFornecedoresLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaFornecedores, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jDialogConsultaEntradas.setTitle("CONSULTA ENTRADAS");
        jDialogConsultaEntradas.setMinimumSize(new java.awt.Dimension(1014, 430));

        jButtonConsultaEntradasSair.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonConsultaEntradasSair.setText("Fechar");
        jButtonConsultaEntradasSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsultaEntradasSairActionPerformed(evt);
            }
        });

        jTableConsultaEntradas.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "#", "Funcionário", "Forncedor", "Matéria Prima", "Data Entrega", "Lote Origem", "Quant. Disponível", "Quant. a Devolver"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane3.setViewportView(jTableConsultaEntradas);
        if (jTableConsultaEntradas.getColumnModel().getColumnCount() > 0) {
            jTableConsultaEntradas.getColumnModel().getColumn(0).setMinWidth(20);
            jTableConsultaEntradas.getColumnModel().getColumn(0).setMaxWidth(30);
        }

        jButtonVerDevolucoes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/trocar.png"))); // NOI18N
        jButtonVerDevolucoes.setText("Fazer Devolução");
        jButtonVerDevolucoes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVerDevolucoesActionPerformed(evt);
            }
        });

        jButtonDevolucao.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/devolução.png"))); // NOI18N
        jButtonDevolucao.setText("Devolução");
        jButtonDevolucao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDevolucaoActionPerformed(evt);
            }
        });

        jLabelPesquisar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/pesquisar.png"))); // NOI18N
        jLabelPesquisar.setText("Pesquisar Por Lote");

        jTextFieldPesquisarEntrada.addCaretListener(new javax.swing.event.CaretListener() {
            public void caretUpdate(javax.swing.event.CaretEvent evt) {
                jTextFieldPesquisarEntradaCaretUpdate(evt);
            }
        });

        jButtonVerControloResultados.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Nao Conformidades.png"))); // NOI18N
        jButtonVerControloResultados.setText("Ver Controlo Resultados");
        jButtonVerControloResultados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVerControloResultadosActionPerformed(evt);
            }
        });

        jButtonVerLoteTotal.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Consulta.png"))); // NOI18N
        jButtonVerLoteTotal.setText("Ver Lote Total(S/Devoluções)");
        jButtonVerLoteTotal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVerLoteTotalActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelConsultaEntradasLayout = new javax.swing.GroupLayout(jPanelConsultaEntradas);
        jPanelConsultaEntradas.setLayout(jPanelConsultaEntradasLayout);
        jPanelConsultaEntradasLayout.setHorizontalGroup(
            jPanelConsultaEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultaEntradasLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelConsultaEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelConsultaEntradasLayout.createSequentialGroup()
                        .addComponent(jButtonVerDevolucoes)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButtonVerLoteTotal)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jButtonConsultaEntradasSair))
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 959, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelConsultaEntradasLayout.createSequentialGroup()
                        .addComponent(jLabelPesquisar)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextFieldPesquisarEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButtonVerControloResultados)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jButtonDevolucao)))
                .addContainerGap())
        );
        jPanelConsultaEntradasLayout.setVerticalGroup(
            jPanelConsultaEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelConsultaEntradasLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanelConsultaEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonDevolucao)
                    .addComponent(jLabelPesquisar)
                    .addComponent(jTextFieldPesquisarEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonVerControloResultados))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 252, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelConsultaEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonConsultaEntradasSair)
                    .addComponent(jButtonVerDevolucoes)
                    .addComponent(jButtonVerLoteTotal))
                .addGap(138, 138, 138))
        );

        jLabelTituloConsultaEntradas.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N
        jLabelTituloConsultaEntradas.setText("jLabel25");

        javax.swing.GroupLayout jDialogConsultaEntradasLayout = new javax.swing.GroupLayout(jDialogConsultaEntradas.getContentPane());
        jDialogConsultaEntradas.getContentPane().setLayout(jDialogConsultaEntradasLayout);
        jDialogConsultaEntradasLayout.setHorizontalGroup(
            jDialogConsultaEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaEntradasLayout.createSequentialGroup()
                .addGroup(jDialogConsultaEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogConsultaEntradasLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanelConsultaEntradas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jDialogConsultaEntradasLayout.createSequentialGroup()
                        .addGap(368, 368, 368)
                        .addComponent(jLabelTituloConsultaEntradas)))
                .addContainerGap(25, Short.MAX_VALUE))
        );
        jDialogConsultaEntradasLayout.setVerticalGroup(
            jDialogConsultaEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaEntradasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelTituloConsultaEntradas)
                .addGap(2, 2, 2)
                .addComponent(jPanelConsultaEntradas, javax.swing.GroupLayout.PREFERRED_SIZE, 364, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(38, Short.MAX_VALUE))
        );

        jDialogConsultaDevolucoes.setTitle("CONSULTA DEVOLUÇÕES");
        jDialogConsultaDevolucoes.setMinimumSize(new java.awt.Dimension(1000, 425));

        jTableConsultaDevolucoes.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "#", "Fornecedor", "Mater. Prima", "Lote Original", "Devolução Nº", "Data Devolução", "Quantidade"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane4.setViewportView(jTableConsultaDevolucoes);
        if (jTableConsultaDevolucoes.getColumnModel().getColumnCount() > 0) {
            jTableConsultaDevolucoes.getColumnModel().getColumn(0).setMinWidth(10);
            jTableConsultaDevolucoes.getColumnModel().getColumn(0).setMaxWidth(30);
        }

        jButtonConsultaDevolucoesSair.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonConsultaDevolucoesSair.setText("Fechar");
        jButtonConsultaDevolucoesSair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsultaDevolucoesSairActionPerformed(evt);
            }
        });

        jButtonVerFichaDetalhadaConsultaDevolucoes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Consulta.png"))); // NOI18N
        jButtonVerFichaDetalhadaConsultaDevolucoes.setText("Ver Ficha Detalhada");
        jButtonVerFichaDetalhadaConsultaDevolucoes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVerFichaDetalhadaConsultaDevolucoesActionPerformed(evt);
            }
        });

        jComboBoxFornecedorDevolucoes.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboBoxFornecedorDevolucoes.addPopupMenuListener(new javax.swing.event.PopupMenuListener() {
            public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {
                jComboBoxFornecedorDevolucoesPopupMenuWillBecomeInvisible(evt);
            }
            public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) {
            }
            public void popupMenuCanceled(javax.swing.event.PopupMenuEvent evt) {
            }
        });

        jComboBoxMateriaPrimaDevolucoes.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboBoxMateriaPrimaDevolucoes.addPopupMenuListener(new javax.swing.event.PopupMenuListener() {
            public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {
                jComboBoxMateriaPrimaDevolucoesPopupMenuWillBecomeInvisible(evt);
            }
            public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) {
            }
            public void popupMenuCanceled(javax.swing.event.PopupMenuEvent evt) {
            }
        });

        jLabelFornecedorDevolucoes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/pesquisar.png"))); // NOI18N
        jLabelFornecedorDevolucoes.setText("Fornecedor");

        jLabelMateriaPrimaDevolucoes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/pesquisar.png"))); // NOI18N
        jLabelMateriaPrimaDevolucoes.setText("Materia-Prima");

        jButtonVerTodasAsDevolucoes.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/Consltas_Menu.png"))); // NOI18N
        jButtonVerTodasAsDevolucoes.setText("Ver Todas as Devoluções");
        jButtonVerTodasAsDevolucoes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVerTodasAsDevolucoesActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelConsultaDevolucoesLayout = new javax.swing.GroupLayout(jPanelConsultaDevolucoes);
        jPanelConsultaDevolucoes.setLayout(jPanelConsultaDevolucoesLayout);
        jPanelConsultaDevolucoesLayout.setHorizontalGroup(
            jPanelConsultaDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultaDevolucoesLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelConsultaDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane4)
                    .addGroup(jPanelConsultaDevolucoesLayout.createSequentialGroup()
                        .addGroup(jPanelConsultaDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelConsultaDevolucoesLayout.createSequentialGroup()
                                .addGroup(jPanelConsultaDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabelFornecedorDevolucoes)
                                    .addComponent(jComboBoxFornecedorDevolucoes, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanelConsultaDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabelMateriaPrimaDevolucoes)
                                    .addComponent(jComboBoxMateriaPrimaDevolucoes, javax.swing.GroupLayout.PREFERRED_SIZE, 179, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(jButtonVerFichaDetalhadaConsultaDevolucoes))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 387, Short.MAX_VALUE)
                        .addGroup(jPanelConsultaDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButtonVerTodasAsDevolucoes, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jButtonConsultaDevolucoesSair, javax.swing.GroupLayout.Alignment.TRAILING))))
                .addContainerGap())
        );
        jPanelConsultaDevolucoesLayout.setVerticalGroup(
            jPanelConsultaDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelConsultaDevolucoesLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPanelConsultaDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelFornecedorDevolucoes)
                    .addComponent(jLabelMateriaPrimaDevolucoes))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelConsultaDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jComboBoxFornecedorDevolucoes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jComboBoxMateriaPrimaDevolucoes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButtonVerTodasAsDevolucoes))
                .addGap(18, 18, 18)
                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelConsultaDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonConsultaDevolucoesSair)
                    .addComponent(jButtonVerFichaDetalhadaConsultaDevolucoes))
                .addGap(33, 33, 33))
        );

        javax.swing.GroupLayout jDialogConsultaDevolucoesLayout = new javax.swing.GroupLayout(jDialogConsultaDevolucoes.getContentPane());
        jDialogConsultaDevolucoes.getContentPane().setLayout(jDialogConsultaDevolucoesLayout);
        jDialogConsultaDevolucoesLayout.setHorizontalGroup(
            jDialogConsultaDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaDevolucoesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaDevolucoes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(45, Short.MAX_VALUE))
        );
        jDialogConsultaDevolucoesLayout.setVerticalGroup(
            jDialogConsultaDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaDevolucoesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaDevolucoes, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(37, Short.MAX_VALUE))
        );

        jDialogConsultaMateriasPrimas.setTitle("CONSULTAR MÁTERIAS-PRIMAS");
        jDialogConsultaMateriasPrimas.setMinimumSize(new java.awt.Dimension(680, 400));

        jTableConsultaMateriasPrimas.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "#", "Nome", "Descrição", "Unidade"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane5.setViewportView(jTableConsultaMateriasPrimas);
        if (jTableConsultaMateriasPrimas.getColumnModel().getColumnCount() > 0) {
            jTableConsultaMateriasPrimas.getColumnModel().getColumn(0).setMinWidth(10);
            jTableConsultaMateriasPrimas.getColumnModel().getColumn(0).setMaxWidth(30);
        }

        jButtonSairConsultaMateriaPrima.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonSairConsultaMateriaPrima.setText("Fechar");
        jButtonSairConsultaMateriaPrima.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSairConsultaMateriaPrimaActionPerformed(evt);
            }
        });

        jLabelPesquisarMateriaPrima.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/pesquisar.png"))); // NOI18N
        jLabelPesquisarMateriaPrima.setText("Pesquisar");

        jTextFieldPesquisarMateriaPrima.addCaretListener(new javax.swing.event.CaretListener() {
            public void caretUpdate(javax.swing.event.CaretEvent evt) {
                jTextFieldPesquisarMateriaPrimaCaretUpdate(evt);
            }
        });

        jButtonAlterarEstadoMP.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/trocar.png"))); // NOI18N
        jButtonAlterarEstadoMP.setText("Alterar Estado");
        jButtonAlterarEstadoMP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonAlterarEstadoMPActionPerformed(evt);
            }
        });

        jButtonVerInativosMP.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/inativos.png"))); // NOI18N
        jButtonVerInativosMP.setText("Ver Inativas");
        jButtonVerInativosMP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVerInativosMPActionPerformed(evt);
            }
        });

        jButtonEditarMP.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/editar.png"))); // NOI18N
        jButtonEditarMP.setText("Editar");
        jButtonEditarMP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEditarMPActionPerformed(evt);
            }
        });

        jLabelConsultarMateriasPrimas.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabelConsultarMateriasPrimas.setText("Consultar Matérias-Primas - Ativas");

        javax.swing.GroupLayout jPanelConsutaMateriasPrimasLayout = new javax.swing.GroupLayout(jPanelConsutaMateriasPrimas);
        jPanelConsutaMateriasPrimas.setLayout(jPanelConsutaMateriasPrimasLayout);
        jPanelConsutaMateriasPrimasLayout.setHorizontalGroup(
            jPanelConsutaMateriasPrimasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsutaMateriasPrimasLayout.createSequentialGroup()
                .addGap(18, 18, 18)
                .addGroup(jPanelConsutaMateriasPrimasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelConsutaMateriasPrimasLayout.createSequentialGroup()
                        .addComponent(jButtonVerInativosMP)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButtonSairConsultaMateriaPrima))
                    .addGroup(jPanelConsutaMateriasPrimasLayout.createSequentialGroup()
                        .addComponent(jLabelPesquisarMateriaPrima)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jTextFieldPesquisarMateriaPrima, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButtonEditarMP)
                        .addGap(18, 18, 18)
                        .addComponent(jButtonAlterarEstadoMP))
                    .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 609, Short.MAX_VALUE))
                .addContainerGap())
            .addGroup(jPanelConsutaMateriasPrimasLayout.createSequentialGroup()
                .addGap(164, 164, 164)
                .addComponent(jLabelConsultarMateriasPrimas)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelConsutaMateriasPrimasLayout.setVerticalGroup(
            jPanelConsutaMateriasPrimasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsutaMateriasPrimasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabelConsultarMateriasPrimas)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelConsutaMateriasPrimasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabelPesquisarMateriaPrima)
                    .addGroup(jPanelConsutaMateriasPrimasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jTextFieldPesquisarMateriaPrima, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(jButtonAlterarEstadoMP)
                        .addComponent(jButtonEditarMP)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 177, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanelConsutaMateriasPrimasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonVerInativosMP)
                    .addComponent(jButtonSairConsultaMateriaPrima))
                .addContainerGap(29, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogConsultaMateriasPrimasLayout = new javax.swing.GroupLayout(jDialogConsultaMateriasPrimas.getContentPane());
        jDialogConsultaMateriasPrimas.getContentPane().setLayout(jDialogConsultaMateriasPrimasLayout);
        jDialogConsultaMateriasPrimasLayout.setHorizontalGroup(
            jDialogConsultaMateriasPrimasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaMateriasPrimasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsutaMateriasPrimas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(31, Short.MAX_VALUE))
        );
        jDialogConsultaMateriasPrimasLayout.setVerticalGroup(
            jDialogConsultaMateriasPrimasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaMateriasPrimasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsutaMateriasPrimas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jDialogVerHistoricoControlo.setTitle("Historico do Controlo de Resultado");
        jDialogVerHistoricoControlo.setMinimumSize(new java.awt.Dimension(890, 520));

        jLabel37.setText("Consulta Historico de um Controlo de Resultado");

        jTableVerHistorico.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "#", "Funcionario (Registou)", "Data Ocorrencia", "Ocorrencia", "Medida Correctica (MC)", "Observação"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane6.setViewportView(jTableVerHistorico);
        if (jTableVerHistorico.getColumnModel().getColumnCount() > 0) {
            jTableVerHistorico.getColumnModel().getColumn(0).setMinWidth(20);
            jTableVerHistorico.getColumnModel().getColumn(0).setMaxWidth(30);
        }

        jButtonVerDatas.setText("Ver Medida Correctiva");
        jButtonVerDatas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVerDatasActionPerformed(evt);
            }
        });

        jButtonSairHistorico.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/fechar.png"))); // NOI18N
        jButtonSairHistorico.setText("Fechar");
        jButtonSairHistorico.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSairHistoricoActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelConsultaHistoricoLayout = new javax.swing.GroupLayout(jPanelConsultaHistorico);
        jPanelConsultaHistorico.setLayout(jPanelConsultaHistoricoLayout);
        jPanelConsultaHistoricoLayout.setHorizontalGroup(
            jPanelConsultaHistoricoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultaHistoricoLayout.createSequentialGroup()
                .addGroup(jPanelConsultaHistoricoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelConsultaHistoricoLayout.createSequentialGroup()
                        .addGap(21, 21, 21)
                        .addComponent(jLabel37))
                    .addGroup(jPanelConsultaHistoricoLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanelConsultaHistoricoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jButtonSairHistorico)
                            .addComponent(jButtonVerDatas)
                            .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 792, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(38, Short.MAX_VALUE))
        );
        jPanelConsultaHistoricoLayout.setVerticalGroup(
            jPanelConsultaHistoricoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultaHistoricoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel37)
                .addGap(41, 41, 41)
                .addComponent(jButtonVerDatas)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 235, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jButtonSairHistorico)
                .addContainerGap(24, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogVerHistoricoControloLayout = new javax.swing.GroupLayout(jDialogVerHistoricoControlo.getContentPane());
        jDialogVerHistoricoControlo.getContentPane().setLayout(jDialogVerHistoricoControloLayout);
        jDialogVerHistoricoControloLayout.setHorizontalGroup(
            jDialogVerHistoricoControloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogVerHistoricoControloLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaHistorico, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jDialogVerHistoricoControloLayout.setVerticalGroup(
            jDialogVerHistoricoControloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogVerHistoricoControloLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaHistorico, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(21, Short.MAX_VALUE))
        );

        jDialogAlterarReferencia.setTitle("ALTERAÇÃO CÓDIGO REFERÊNCIA");
        jDialogAlterarReferencia.setMinimumSize(new java.awt.Dimension(300, 200));

        jButtonGuardarNovaRef.setText("Atualizar Referência");
        jButtonGuardarNovaRef.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardarNovaRefActionPerformed(evt);
            }
        });

        jLabelAntigaReferencia.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabelAntigaReferencia.setText("[Referência antiga]");

        jLabelNovaReferencia.setText("Referência: ");

        jLabel42.setText("Referência :");

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel42)
                .addContainerGap(215, Short.MAX_VALUE))
            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel3Layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jButtonGuardarNovaRef)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel3Layout.createSequentialGroup()
                                .addComponent(jLabelNovaReferencia)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jTextFieldNovaReferencia, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jLabelAntigaReferencia)))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel42)
                .addContainerGap(127, Short.MAX_VALUE))
            .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanel3Layout.createSequentialGroup()
                    .addGap(34, 34, 34)
                    .addComponent(jLabelAntigaReferencia)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabelNovaReferencia)
                        .addComponent(jTextFieldNovaReferencia, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addComponent(jButtonGuardarNovaRef)
                    .addContainerGap(34, Short.MAX_VALUE)))
        );

        javax.swing.GroupLayout jDialogAlterarReferenciaLayout = new javax.swing.GroupLayout(jDialogAlterarReferencia.getContentPane());
        jDialogAlterarReferencia.getContentPane().setLayout(jDialogAlterarReferenciaLayout);
        jDialogAlterarReferenciaLayout.setHorizontalGroup(
            jDialogAlterarReferenciaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAlterarReferenciaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(26, Short.MAX_VALUE))
        );
        jDialogAlterarReferenciaLayout.setVerticalGroup(
            jDialogAlterarReferenciaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAlterarReferenciaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(32, Short.MAX_VALUE))
        );

        jDialogAlterarNomeEquipamento.setTitle("ALTERAR NOME EQUIPAMENTO");
        jDialogAlterarNomeEquipamento.setMinimumSize(new java.awt.Dimension(330, 210));

        jPanelAlterarNomeEquipamento.setToolTipText("");

        jButtonGuardarNovaNomeEquipp.setText("Atualizar Nome");
        jButtonGuardarNovaNomeEquipp.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardarNovaNomeEquippActionPerformed(evt);
            }
        });

        jLabelAntigoNomeEquipp.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabelAntigoNomeEquipp.setText("[nome antiga]");

        jLabelNovoNomeEquipp.setText("Nome Equipamento");

        jLabel43.setText("Nome:");

        javax.swing.GroupLayout jPanelAlterarNomeEquipamentoLayout = new javax.swing.GroupLayout(jPanelAlterarNomeEquipamento);
        jPanelAlterarNomeEquipamento.setLayout(jPanelAlterarNomeEquipamentoLayout);
        jPanelAlterarNomeEquipamentoLayout.setHorizontalGroup(
            jPanelAlterarNomeEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAlterarNomeEquipamentoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel43)
                .addContainerGap(220, Short.MAX_VALUE))
            .addGroup(jPanelAlterarNomeEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanelAlterarNomeEquipamentoLayout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(jPanelAlterarNomeEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addComponent(jButtonGuardarNovaNomeEquipp)
                        .addGroup(jPanelAlterarNomeEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelAlterarNomeEquipamentoLayout.createSequentialGroup()
                                .addComponent(jLabelNovoNomeEquipp)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jTextFieldNovoNomeEquipp, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jLabelAntigoNomeEquipp)))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
        );
        jPanelAlterarNomeEquipamentoLayout.setVerticalGroup(
            jPanelAlterarNomeEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelAlterarNomeEquipamentoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel43)
                .addContainerGap(127, Short.MAX_VALUE))
            .addGroup(jPanelAlterarNomeEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPanelAlterarNomeEquipamentoLayout.createSequentialGroup()
                    .addGap(34, 34, 34)
                    .addComponent(jLabelAntigoNomeEquipp)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(jPanelAlterarNomeEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabelNovoNomeEquipp)
                        .addComponent(jTextFieldNovoNomeEquipp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGap(18, 18, 18)
                    .addComponent(jButtonGuardarNovaNomeEquipp)
                    .addContainerGap(34, Short.MAX_VALUE)))
        );

        javax.swing.GroupLayout jDialogAlterarNomeEquipamentoLayout = new javax.swing.GroupLayout(jDialogAlterarNomeEquipamento.getContentPane());
        jDialogAlterarNomeEquipamento.getContentPane().setLayout(jDialogAlterarNomeEquipamentoLayout);
        jDialogAlterarNomeEquipamentoLayout.setHorizontalGroup(
            jDialogAlterarNomeEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAlterarNomeEquipamentoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelAlterarNomeEquipamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(45, Short.MAX_VALUE))
        );
        jDialogAlterarNomeEquipamentoLayout.setVerticalGroup(
            jDialogAlterarNomeEquipamentoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogAlterarNomeEquipamentoLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelAlterarNomeEquipamento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(32, Short.MAX_VALUE))
        );

        jButtonSeleccionarNPF.setText("Seleccione");
        jButtonSeleccionarNPF.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonSeleccionarNPFActionPerformed(evt);
            }
        });

        jButton3.setText("Diferença");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });

        jButton4.setText("Gravar");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "opçcao", "Item 1", "Item 2", "Item 3", "Item 4" }));

        jButton5.setText("jButton5");
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane());
        jDialog1.getContentPane().setLayout(jDialog1Layout);
        jDialog1Layout.setHorizontalGroup(
            jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialog1Layout.createSequentialGroup()
                .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialog1Layout.createSequentialGroup()
                        .addGap(75, 75, 75)
                        .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jTextFieldUploudNUC, javax.swing.GroupLayout.PREFERRED_SIZE, 154, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGroup(jDialog1Layout.createSequentialGroup()
                                .addGap(166, 166, 166)
                                .addComponent(jButtonSeleccionarNPF))))
                    .addGroup(jDialog1Layout.createSequentialGroup()
                        .addGap(141, 141, 141)
                        .addComponent(jButton4))
                    .addGroup(jDialog1Layout.createSequentialGroup()
                        .addGap(67, 67, 67)
                        .addComponent(JT01, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jButton3)
                            .addGroup(jDialog1Layout.createSequentialGroup()
                                .addComponent(JT02, javax.swing.GroupLayout.PREFERRED_SIZE, 42, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(30, 30, 30)
                                .addComponent(JTRES, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 153, Short.MAX_VALUE)
                .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButton5)
                    .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(304, 304, 304))
        );
        jDialog1Layout.setVerticalGroup(
            jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialog1Layout.createSequentialGroup()
                .addGap(73, 73, 73)
                .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonSeleccionarNPF)
                    .addComponent(jTextFieldUploudNUC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(13, 13, 13)
                .addComponent(jButton4)
                .addGap(2, 2, 2)
                .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(36, 36, 36)
                .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(JT01, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(JT02, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(JTRES, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton5))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButton3)
                .addContainerGap(516, Short.MAX_VALUE))
        );

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Higiene e Segurança - Principio Base");
        setMinimumSize(new java.awt.Dimension(250, 200));

        jPanelRealizaLogin.setBorder(javax.swing.BorderFactory.createTitledBorder("Login"));

        jLabelNomeLogin.setText("Nome:");

        jLabelPasswordLogin.setText("Password");

        jButtonEntrar.setText("Entrar");
        jButtonEntrar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonEntrarActionPerformed(evt);
            }
        });

        jComboBoxNomeLogin.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        javax.swing.GroupLayout jPanelRealizaLoginLayout = new javax.swing.GroupLayout(jPanelRealizaLogin);
        jPanelRealizaLogin.setLayout(jPanelRealizaLoginLayout);
        jPanelRealizaLoginLayout.setHorizontalGroup(
            jPanelRealizaLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelRealizaLoginLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelRealizaLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabelPasswordLogin)
                    .addComponent(jLabelNomeLogin))
                .addGap(18, 18, 18)
                .addGroup(jPanelRealizaLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonEntrar)
                    .addGroup(jPanelRealizaLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addComponent(jPasswordFieldLogin)
                        .addComponent(jComboBoxNomeLogin, 0, 125, Short.MAX_VALUE)))
                .addContainerGap(45, Short.MAX_VALUE))
        );
        jPanelRealizaLoginLayout.setVerticalGroup(
            jPanelRealizaLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelRealizaLoginLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelRealizaLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelNomeLogin)
                    .addComponent(jComboBoxNomeLogin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(20, 20, 20)
                .addGroup(jPanelRealizaLoginLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelPasswordLogin)
                    .addComponent(jPasswordFieldLogin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jButtonEntrar)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jButton1.setText("jButton1");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelJanelaLayout = new javax.swing.GroupLayout(jPanelJanela);
        jPanelJanela.setLayout(jPanelJanelaLayout);
        jPanelJanelaLayout.setHorizontalGroup(
            jPanelJanelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelJanelaLayout.createSequentialGroup()
                .addGap(29, 29, 29)
                .addGroup(jPanelJanelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jButton1)
                    .addComponent(jPanelRealizaLogin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(43, Short.MAX_VALUE))
        );
        jPanelJanelaLayout.setVerticalGroup(
            jPanelJanelaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelJanelaLayout.createSequentialGroup()
                .addGap(34, 34, 34)
                .addComponent(jPanelRealizaLogin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 19, Short.MAX_VALUE)
                .addComponent(jButton1)
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelJanela, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(62, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanelJanela, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 67, Short.MAX_VALUE))
        );

        setSize(new java.awt.Dimension(416, 339));
    }