private void initComponents() {

        jDialogMenuEntradas = new javax.swing.JDialog();
        jPanelMenuEntradas = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        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();
        jDialogNovaEntrada = new javax.swing.JDialog();
        jPanelNovaEntrada = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jComboBoxFornecedorEntrada = new javax.swing.JComboBox();
        jDateChooserEntrada = new com.toedter.calendar.JDateChooser();
        jTextFieldLoteEntrada = new javax.swing.JTextField();
        jTextFieldQuantidadeEntrada = new javax.swing.JTextField();
        jComboBoxFuncionarioResponsavelEntrada = new javax.swing.JComboBox();
        jLabel12 = new javax.swing.JLabel();
        jComboBoxMateriaPrimaEntrada = new javax.swing.JComboBox();
        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();
        jPanelConformidadesNovaEntrada = new javax.swing.JPanel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jComboBoxTemperaturaEntrada = new javax.swing.JComboBox();
        jComboBoxDataValidadeEntrada = new javax.swing.JComboBox();
        jComboBoxCaraOrgonolepticasEntradas = new javax.swing.JComboBox();
        jComboBoxEmbalagemEntradas = new javax.swing.JComboBox();
        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();
        jLabel14 = 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();
        jLabel11 = 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();
        jLabel15 = new javax.swing.JLabel();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jLabel20 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        jDialogDevolucoes = new javax.swing.JDialog();
        jPanelDevolucoes = new javax.swing.JPanel();
        jLabelFuncionarioResponsavel = new javax.swing.JLabel();
        jLabelDataDevolucao = new javax.swing.JLabel();
        jLabelQuantidadeDevolvida = new javax.swing.JLabel();
        jLabelObservação = new javax.swing.JLabel();
        jComboBoxFuncionarioResponsavelDevolucao = new javax.swing.JComboBox();
        jDateChooserDataDevolucao = new com.toedter.calendar.JDateChooser();
        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();
        jLabel22 = new javax.swing.JLabel();
        jDialogConsultaEntradas = new javax.swing.JDialog();
        jPanelConsultaEntradas = new javax.swing.JPanel();
        jButtonConsultaEntradasSair = new javax.swing.JButton();
        jScrollPane2 = 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();
        jDialogConsultaControloResultadosEntradas = new javax.swing.JDialog();
        jPanelConsultaControloResultadosEntradas = new javax.swing.JPanel();
        jLabel13 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTableConsultaControloResultadosEntradas = new javax.swing.JTable();
        jButtonVerNaoConformidadesEntradas = new javax.swing.JButton();
        jButtonConsutaControloResultadosEntradasSair = new javax.swing.JButton();
        jButtonVerFichaCompletaControloResultados = new javax.swing.JButton();
        jDialogConsultaNaoConformidadesEntradas = new javax.swing.JDialog();
        jPanelConsultaNaoConformidadesEntradas = new javax.swing.JPanel();
        jScrollPaneConsultaNaoConformidades = new javax.swing.JScrollPane();
        jTableConsultaNaoConformidadesEntradas = new javax.swing.JTable();
        jButton1 = new javax.swing.JButton();
        jLabel24 = new javax.swing.JLabel();
        jDialogConsultaDevolucoes = new javax.swing.JDialog();
        jPanelConsultaDevolucoes = new javax.swing.JPanel();
        jScrollPane3 = 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();
        jButtonEntrar = new javax.swing.JButton();

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

        jLabel1.setText("MENU ENTRADAS");

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

        jButtonConsultaEntradas.setText("Consultar Entradas");
        jButtonConsultaEntradas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsultaEntradasActionPerformed(evt);
            }
        });

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

        jButtonNovoForncedor.setText("Novo Forncedor");
        jButtonNovoForncedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonNovoForncedorActionPerformed(evt);
            }
        });

        jButtonConsultaDevolucoes.setText("Consultar Devoluçõoes");
        jButtonConsultaDevolucoes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonConsultaDevolucoesActionPerformed(evt);
            }
        });

        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.LEADING)
                    .addComponent(jButtonNovaEntrada)
                    .addComponent(jButtonNovaMateriaPrima))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 61, Short.MAX_VALUE)
                .addGroup(jPanelMenuEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jButtonConsultaDevolucoes)
                    .addComponent(jButtonConsultaEntradas))
                .addGap(49, 49, 49))
            .addGroup(jPanelMenuEntradasLayout.createSequentialGroup()
                .addGroup(jPanelMenuEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelMenuEntradasLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jButtonNovoForncedor))
                    .addGroup(jPanelMenuEntradasLayout.createSequentialGroup()
                        .addGap(113, 113, 113)
                        .addComponent(jLabel1)))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelMenuEntradasLayout.setVerticalGroup(
            jPanelMenuEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelMenuEntradasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addGap(27, 27, 27)
                .addGroup(jPanelMenuEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonNovaEntrada)
                    .addComponent(jButtonConsultaEntradas))
                .addGap(18, 18, 18)
                .addGroup(jPanelMenuEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelMenuEntradasLayout.createSequentialGroup()
                        .addComponent(jButtonConsultaDevolucoes)
                        .addGap(26, 26, 26))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelMenuEntradasLayout.createSequentialGroup()
                        .addComponent(jButtonNovaMateriaPrima)
                        .addGap(18, 18, 18)))
                .addComponent(jButtonNovoForncedor)
                .addContainerGap(80, 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(20, Short.MAX_VALUE))
        );
        jDialogMenuEntradasLayout.setVerticalGroup(
            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(29, Short.MAX_VALUE))
        );

        jDialogNovaEntrada.setTitle("NOVA ENTRADA");
        jDialogNovaEntrada.setMinimumSize(new java.awt.Dimension(620, 500));

        jLabel2.setText("Fornecedor");

        jLabel3.setText("Funcionario Responsavel");

        jLabel4.setText("Data Entrega");

        jLabel5.setText("Lote Origem");

        jLabel6.setText("Quantidade");

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

        jDateChooserEntrada.setDateFormatString("yyyy-MM-dd");

        jTextFieldLoteEntrada.setEditable(false);

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

        jLabel12.setText("Materia Prima");

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

        javax.swing.GroupLayout jPanelNovaEntradaLayout = new javax.swing.GroupLayout(jPanelNovaEntrada);
        jPanelNovaEntrada.setLayout(jPanelNovaEntradaLayout);
        jPanelNovaEntradaLayout.setHorizontalGroup(
            jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelNovaEntradaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel3)
                    .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                        .addGroup(jPanelNovaEntradaLayout.createSequentialGroup()
                            .addComponent(jLabel4)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jDateChooserEntrada, javax.swing.GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE))
                        .addGroup(jPanelNovaEntradaLayout.createSequentialGroup()
                            .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel5)
                                .addComponent(jLabel6))
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jTextFieldLoteEntrada)
                                .addComponent(jTextFieldQuantidadeEntrada)))
                        .addGroup(jPanelNovaEntradaLayout.createSequentialGroup()
                            .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabel2)
                                .addComponent(jLabel12))
                            .addGap(18, 18, 18)
                            .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jComboBoxFuncionarioResponsavelEntrada, 0, 161, Short.MAX_VALUE)
                                .addComponent(jComboBoxFornecedorEntrada, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jComboBoxMateriaPrimaEntrada, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPanelNovaEntradaLayout.setVerticalGroup(
            jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelNovaEntradaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel3)
                .addGap(4, 4, 4)
                .addComponent(jComboBoxFuncionarioResponsavelEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(23, 23, 23)
                .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .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(jLabel12)
                    .addComponent(jComboBoxMateriaPrimaEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)
                .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jLabel4)
                    .addComponent(jDateChooserEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(26, 26, 26)
                .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel5)
                    .addComponent(jTextFieldLoteEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(26, 26, 26)
                .addGroup(jPanelNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(jTextFieldQuantidadeEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(52, 52, 52))
        );

        jButtonGuardarNovaEntrada.setText("Guardar");
        jButtonGuardarNovaEntrada.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardarNovaEntradaActionPerformed(evt);
            }
        });

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

        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()
                .addGap(22, 22, 22)
                .addComponent(jLabelQuantidadeADevolver)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelADevolverNovaEntradaLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jTextFieldQuantidadeADevolver, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                .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)
                .addComponent(jTextFieldQuantidadeADevolver, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(18, Short.MAX_VALUE))
        );

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

        jLabel7.setText("Temperatura");

        jLabel8.setText("Data Validade");

        jLabel9.setText("Caract. Orgonolepticas");

        jLabel10.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(jLabel7)
                    .addComponent(jLabel8)
                    .addComponent(jLabel9)
                    .addComponent(jLabel10))
                .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(jLabel7)
                    .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(jLabel8)
                    .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(jLabel9)
                    .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(jLabel10)
                    .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()
                .addGroup(jDialogNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDialogNovaEntradaLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPanelNovaEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .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.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                    .addGroup(jDialogNovaEntradaLayout.createSequentialGroup()
                        .addGap(149, 149, 149)
                        .addComponent(jPanelBotoesNovaEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(23, Short.MAX_VALUE))
        );
        jDialogNovaEntradaLayout.setVerticalGroup(
            jDialogNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogNovaEntradaLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDialogNovaEntradaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jDialogNovaEntradaLayout.createSequentialGroup()
                        .addComponent(jPanelConformidadesNovaEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jPanelADevolverNovaEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(19, 19, 19))
                    .addComponent(jPanelNovaEntrada, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanelBotoesNovaEntrada, 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(352, 400));

        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.setText("Guardar");
        jButtonGuardarMateriaPrima.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardarMateriaPrimaActionPerformed(evt);
            }
        });

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

        jLabel14.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel14.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()
                        .addGap(57, 57, 57)
                        .addComponent(jScrollPaneDescricaoMateriaPrima, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanelNovaMateriaPrimaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelNovaMateriaPrimaLayout.createSequentialGroup()
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jButtonGuardarMateriaPrima)
                            .addGap(41, 41, 41)
                            .addComponent(jButtonSairMateriaPrima))
                        .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(jLabel14)
                                .addGap(56, 56, 56)))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanelNovaMateriaPrimaLayout.setVerticalGroup(
            jPanelNovaMateriaPrimaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelNovaMateriaPrimaLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel14)
                .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(21, 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");

        jLabel11.setText("Ficha Tecnica");

        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.setText("Guardar");
        jButtonGuardarNovoFornecedor.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardarNovoFornecedorActionPerformed(evt);
            }
        });

        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");

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

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

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

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

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

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

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

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

        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)
                            .addGroup(jPanelNovoFornecedorLayout.createSequentialGroup()
                                .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLabel11)
                                    .addGroup(jPanelNovoFornecedorLayout.createSequentialGroup()
                                        .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabelLocalidadeForncedor)
                                            .addComponent(jLabelCodPostalFornecedor)
                                            .addComponent(jLabelContactoForncedor)
                                            .addComponent(jLabelEmailFornecedor)
                                            .addComponent(jLabelNIFFornecedor)
                                            .addComponent(jLabelTipoProduto))
                                        .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(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(jLabel15)
                                    .addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(jPanelNovoFornecedorLayout.createSequentialGroup()
                                .addGap(28, 28, 28)
                                .addComponent(jButtonGuardarNovoFornecedor)
                                .addGap(36, 36, 36)
                                .addComponent(jButtonSairNovoFornecedor))))
                    .addGroup(jPanelNovoFornecedorLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(20, 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(jLabel15))
                .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(jLabel16))
                .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(jLabel17))
                .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(jLabel18))
                .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(jLabel19))
                .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(jLabel20))
                .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(jLabel21))
                .addGap(18, 18, 18)
                .addComponent(jLabel11)
                .addGap(26, 26, 26)
                .addGroup(jPanelNovoFornecedorLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonGuardarNovoFornecedor)
                    .addComponent(jButtonSairNovoFornecedor))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLabel23)
                .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))
        );

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

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

        jLabelFuncionarioResponsavel.setText("Funcionario Responsavel");

        jLabelDataDevolucao.setText("Data de Devolução");

        jLabelQuantidadeDevolvida.setText("Quantidade Devolvida");

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

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

        jDateChooserDataDevolucao.setDateFormatString("yyyy-MM-dd");

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

        jButtonGuardaDevolucao.setText("Guardar");
        jButtonGuardaDevolucao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonGuardaDevolucaoActionPerformed(evt);
            }
        });

        jButtonSairDevolucao.setText("Voltar");
        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));

        jLabel22.setText("Devolver");

        javax.swing.GroupLayout jPanelDevolucoesLayout = new javax.swing.GroupLayout(jPanelDevolucoes);
        jPanelDevolucoes.setLayout(jPanelDevolucoesLayout);
        jPanelDevolucoesLayout.setHorizontalGroup(
            jPanelDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .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)
                            .addGroup(jPanelDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLabelFuncionarioResponsavel)
                                .addComponent(jLabelDataDevolucao, javax.swing.GroupLayout.Alignment.TRAILING))
                            .addComponent(jLabelQuantidadeADevolverDevolucao)
                            .addComponent(jLabel22)
                            .addComponent(jLabelQuantidadeDevolvida))
                        .addGap(18, 18, 18)
                        .addGroup(jPanelDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelDevolucoesLayout.createSequentialGroup()
                                .addGroup(jPanelDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jDateChooserDataDevolucao, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addGroup(jPanelDevolucoesLayout.createSequentialGroup()
                                        .addComponent(jComboBoxFuncionarioResponsavelDevolucao, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(0, 0, Short.MAX_VALUE)))
                                .addGap(233, 233, 233))
                            .addGroup(jPanelDevolucoesLayout.createSequentialGroup()
                                .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))
                                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                    .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))
                        .addGap(0, 0, Short.MAX_VALUE))))
        );
        jPanelDevolucoesLayout.setVerticalGroup(
            jPanelDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelDevolucoesLayout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addGroup(jPanelDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabelFuncionarioResponsavel)
                    .addComponent(jComboBoxFuncionarioResponsavelDevolucao, 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.TRAILING)
                    .addComponent(jLabelDataDevolucao)
                    .addComponent(jDateChooserDataDevolucao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanelDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelDevolucoesLayout.createSequentialGroup()
                        .addGap(25, 25, 25)
                        .addComponent(jLabelQuantidadeADevolverDevolucao)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel22))
                    .addGroup(jPanelDevolucoesLayout.createSequentialGroup()
                        .addGap(33, 33, 33)
                        .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(45, 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, 351, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(35, 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(36, Short.MAX_VALUE))
        );

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

        jButtonConsultaEntradasSair.setText("Voltar");
        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
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane2.setViewportView(jTableConsultaEntradas);
        if (jTableConsultaEntradas.getColumnModel().getColumnCount() > 0) {
            jTableConsultaEntradas.getColumnModel().getColumn(3).setPreferredWidth(30);
        }

        jButtonVerDevolucoes.setText("Fazer Devolução");
        jButtonVerDevolucoes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVerDevolucoesActionPerformed(evt);
            }
        });

        jButtonDevolucao.setText("Devolução");
        jButtonDevolucao.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonDevolucaoActionPerformed(evt);
            }
        });

        jLabelPesquisar.setText("Pesquisar Por Lote");

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

        jButtonVerControloResultados.setText("Ver Controlo Resultados");
        jButtonVerControloResultados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVerControloResultadosActionPerformed(evt);
            }
        });

        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(jScrollPane2, 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)
                        .addGap(18, 18, 18)
                        .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(jScrollPane2, 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))
        );

        jDialogConsultaControloResultadosEntradas.setTitle("CONTROLO DE RESULTADO - ENTRADAS");
        jDialogConsultaControloResultadosEntradas.setMinimumSize(new java.awt.Dimension(918, 376));

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

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

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

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

        jButtonVerNaoConformidadesEntradas.setText("VER NAO CONFORMIDADES DAS ENTRADAS");
        jButtonVerNaoConformidadesEntradas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVerNaoConformidadesEntradasActionPerformed(evt);
            }
        });

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

        jButtonVerFichaCompletaControloResultados.setText("Ver ficha Completa");
        jButtonVerFichaCompletaControloResultados.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButtonVerFichaCompletaControloResultadosActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanelConsultaControloResultadosEntradasLayout = new javax.swing.GroupLayout(jPanelConsultaControloResultadosEntradas);
        jPanelConsultaControloResultadosEntradas.setLayout(jPanelConsultaControloResultadosEntradasLayout);
        jPanelConsultaControloResultadosEntradasLayout.setHorizontalGroup(
            jPanelConsultaControloResultadosEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultaControloResultadosEntradasLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelConsultaControloResultadosEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelConsultaControloResultadosEntradasLayout.createSequentialGroup()
                        .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 860, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(jPanelConsultaControloResultadosEntradasLayout.createSequentialGroup()
                        .addComponent(jLabel13)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButtonVerNaoConformidadesEntradas))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelConsultaControloResultadosEntradasLayout.createSequentialGroup()
                        .addComponent(jButtonVerFichaCompletaControloResultados)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jButtonConsutaControloResultadosEntradasSair)))
                .addContainerGap())
        );
        jPanelConsultaControloResultadosEntradasLayout.setVerticalGroup(
            jPanelConsultaControloResultadosEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultaControloResultadosEntradasLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelConsultaControloResultadosEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanelConsultaControloResultadosEntradasLayout.createSequentialGroup()
                        .addComponent(jLabel13)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 27, Short.MAX_VALUE))
                    .addComponent(jButtonVerNaoConformidadesEntradas, javax.swing.GroupLayout.Alignment.TRAILING))
                .addGap(8, 8, 8)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 221, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanelConsultaControloResultadosEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonConsutaControloResultadosEntradasSair)
                    .addComponent(jButtonVerFichaCompletaControloResultados))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogConsultaControloResultadosEntradasLayout = new javax.swing.GroupLayout(jDialogConsultaControloResultadosEntradas.getContentPane());
        jDialogConsultaControloResultadosEntradas.getContentPane().setLayout(jDialogConsultaControloResultadosEntradasLayout);
        jDialogConsultaControloResultadosEntradasLayout.setHorizontalGroup(
            jDialogConsultaControloResultadosEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaControloResultadosEntradasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaControloResultadosEntradas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(22, Short.MAX_VALUE))
        );
        jDialogConsultaControloResultadosEntradasLayout.setVerticalGroup(
            jDialogConsultaControloResultadosEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaControloResultadosEntradasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaControloResultadosEntradas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(33, Short.MAX_VALUE))
        );

        jDialogConsultaNaoConformidadesEntradas.setTitle("CONSULTAR NÃO CONFORMIDADES");
        jDialogConsultaNaoConformidadesEntradas.setMinimumSize(new java.awt.Dimension(733, 401));

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

            },
            new String [] {
                "Funcionario", "Data", "Ocorrencia", "Func. Responsavel", "Medida Correctiva"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, true, false
            };

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

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

        jLabel24.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
        jLabel24.setText("Não Conformidades");

        javax.swing.GroupLayout jPanelConsultaNaoConformidadesEntradasLayout = new javax.swing.GroupLayout(jPanelConsultaNaoConformidadesEntradas);
        jPanelConsultaNaoConformidadesEntradas.setLayout(jPanelConsultaNaoConformidadesEntradasLayout);
        jPanelConsultaNaoConformidadesEntradasLayout.setHorizontalGroup(
            jPanelConsultaNaoConformidadesEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultaNaoConformidadesEntradasLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanelConsultaNaoConformidadesEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPaneConsultaNaoConformidades, javax.swing.GroupLayout.DEFAULT_SIZE, 681, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanelConsultaNaoConformidadesEntradasLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jButton1))
                    .addGroup(jPanelConsultaNaoConformidadesEntradasLayout.createSequentialGroup()
                        .addComponent(jLabel24)
                        .addGap(0, 0, Short.MAX_VALUE)))
                .addContainerGap())
        );
        jPanelConsultaNaoConformidadesEntradasLayout.setVerticalGroup(
            jPanelConsultaNaoConformidadesEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanelConsultaNaoConformidadesEntradasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel24)
                .addGap(19, 19, 19)
                .addComponent(jScrollPaneConsultaNaoConformidades, javax.swing.GroupLayout.PREFERRED_SIZE, 272, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButton1)
                .addContainerGap(25, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jDialogConsultaNaoConformidadesEntradasLayout = new javax.swing.GroupLayout(jDialogConsultaNaoConformidadesEntradas.getContentPane());
        jDialogConsultaNaoConformidadesEntradas.getContentPane().setLayout(jDialogConsultaNaoConformidadesEntradasLayout);
        jDialogConsultaNaoConformidadesEntradasLayout.setHorizontalGroup(
            jDialogConsultaNaoConformidadesEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDialogConsultaNaoConformidadesEntradasLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanelConsultaNaoConformidadesEntradas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(22, Short.MAX_VALUE))
        );
        jDialogConsultaNaoConformidadesEntradasLayout.setVerticalGroup(
            jDialogConsultaNaoConformidadesEntradasLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogConsultaNaoConformidadesEntradasLayout.createSequentialGroup()
                .addContainerGap(12, Short.MAX_VALUE)
                .addComponent(jPanelConsultaNaoConformidadesEntradas, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

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

        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
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jScrollPane3.setViewportView(jTableConsultaDevolucoes);
        if (jTableConsultaDevolucoes.getColumnModel().getColumnCount() > 0) {
            jTableConsultaDevolucoes.getColumnModel().getColumn(5).setMaxWidth(120);
        }

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

        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 popupMenuCanceled(javax.swing.event.PopupMenuEvent evt) {
            }
            public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) {
            }
            public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {
                jComboBoxFornecedorDevolucoesPopupMenuWillBecomeInvisible(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 popupMenuCanceled(javax.swing.event.PopupMenuEvent evt) {
            }
            public void popupMenuWillBecomeVisible(javax.swing.event.PopupMenuEvent evt) {
            }
            public void popupMenuWillBecomeInvisible(javax.swing.event.PopupMenuEvent evt) {
                jComboBoxMateriaPrimaDevolucoesPopupMenuWillBecomeInvisible(evt);
            }
        });

        jLabelFornecedorDevolucoes.setText("Fornecedor");

        jLabelMateriaPrimaDevolucoes.setText("Materia-Prima");

        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(jScrollPane3)
                    .addGroup(jPanelConsultaDevolucoesLayout.createSequentialGroup()
                        .addGroup(jPanelConsultaDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanelConsultaDevolucoesLayout.createSequentialGroup()
                                .addGroup(jPanelConsultaDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jComboBoxFornecedorDevolucoes, javax.swing.GroupLayout.PREFERRED_SIZE, 148, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jLabelFornecedorDevolucoes))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPanelConsultaDevolucoesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabelMateriaPrimaDevolucoes)
                                    .addComponent(jComboBoxMateriaPrimaDevolucoes, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(jButtonVerFichaDetalhadaConsultaDevolucoes))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 438, 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(28, 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(jScrollPane3, 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(24, 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(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(288, 192));

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

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(97, 97, 97)
                .addComponent(jButtonEntrar)
                .addContainerGap(128, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(84, 84, 84)
                .addComponent(jButtonEntrar)
                .addContainerGap(85, Short.MAX_VALUE))
        );

        pack();
    }