@SuppressWarnings("CallToThreadDumpStack")
    private void miFornecedorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_miFornecedorActionPerformed
        if (getCadFornecedor() != null && !cadFornecedor.isVisible()) {
            deskPane.remove(getCadFornecedor());
            setCadFornecedor(null);
        }
        if (getCadFornecedor() == null) {
            setCadFornecedor(new FrmFornecedor());
            Validacoes v = new Validacoes();
            v.posicao(this, getCadFornecedor());
            deskPane.add(getCadFornecedor());
            try {
                getCadFornecedor().setSelected(true);
            } catch (PropertyVetoException ex) {
                ex.printStackTrace();
            }
        } else {
            getCadFornecedor().toFront();
        }
    }//GEN-LAST:event_miFornecedorActionPerformed