Java tutorial
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package Visao.relatorios; import Controle.ControlePrincipal; import Modelo.ConexaoBD; import Modelo.GerarTabela; import Visao.carvao.GerenciarCarvaoForno; import Visao.estoqueprincipal.GerenciarEstoquePrincipal; import Visao.expedircarvao.GerenciarEnvioCarvao; import Visao.fazenda.GerenciarFazenda; import Visao.forno.GerenciarForno; import Visao.login.Login; import Visao.madeira.GerenciarMadeiraPraca; import Visao.usuario.GerenciarUsuarios; import com.itextpdf.text.Document; import com.itextpdf.text.DocumentException; import com.itextpdf.text.Element; import com.itextpdf.text.Font; import com.itextpdf.text.PageSize; import com.itextpdf.text.Paragraph; import com.itextpdf.text.pdf.PdfPCell; import com.itextpdf.text.pdf.PdfPTable; import com.itextpdf.text.pdf.PdfWriter; import java.awt.HeadlessException; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.sql.ResultSet; import java.sql.SQLException; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Locale; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JOptionPane; import javax.swing.JTable; import javax.swing.ListSelectionModel; /** * * @author LK */ public class GerarRelatorioMadeiraPraca extends javax.swing.JFrame { private ArrayList linhas; private String[] colunas; private float mStereoTotal; private float m3Total; private float pesoTotal; /** * Creates new form SelecionarEstoqueMadeiraPraca * @throws java.sql.SQLException */ public GerarRelatorioMadeiraPraca() throws SQLException { initComponents(); this.setExtendedState(MAXIMIZED_BOTH); jMenuItemRelatorioMadeiraPraca.setVisible(false); if(ControlePrincipal.tipo_u!=null){ if(ControlePrincipal.tipo_u.equals("op_dir")){ jMenuGerenciar.setVisible(false); jMenuItemGerenciarCarvaoForno.setVisible(false); jMenuItemGerenciarEstoque.setVisible(false); jMenuItemGerenciarFazendas.setVisible(false); jMenuItemGerenciarMadeiraPraa.setVisible(false); jMenuItemGerenciarExpedirCarvao.setVisible(false); jMenuItemGerenciarUsuarios.setVisible(false); jMenuItemGerenciarForno.setVisible(false); } } ChangeName(); _carregarUsuarios(); } private void _carregarUsuarios() { jComboBoxUsuario.removeAllItems(); jComboBoxUsuario.addItem("-"); ConexaoBD con = ConexaoBD.getConexao(0); String query; ResultSet rs; String whereSql; query = "SELECT id_operario FROM controle_madeira"; //JOptionPane.showMessageDialog(null, "Teste!" + query); rs = con.consultaSql(query); try { while (rs.next()) { int i = 0; for (int j = 0; j < jComboBoxUsuario.getItemCount(); j++) { if (jComboBoxUsuario.getItemAt(j).equals(rs.getString("id_operario"))) { i++; //System.out.println("i: "+i); } } if (i == 0) { //System.out.println("Add: "+i+" f "+rs.getString("id_operario")); jComboBoxUsuario.addItem(rs.getString("id_operario")); } } } catch (SQLException ex) { Logger.getLogger(GerarRelatorioEstoqueBasico.class.getName()).log(Level.SEVERE, null, ex); JOptionPane.showMessageDialog(null, "Erro ao carregar usuarios! " + ex); } PreencherTabela(); } /** * */ private void PreencherTabela() { linhas = new ArrayList(); colunas = new String[] { //"id_controle_madeira", "id_estoque_p", "id_operario", "upc_m", "talhao", "data_entrega", "mad_volume_m_stereo", "mad_volume_m3", "altura1_t", "altura2_t", "altura3_t", "comprimento_t", "largura_t", "peso_t", "altura1_bt", "altura2_bt", "altura3_bt", "comprimento_bt", "largura_bt", "peso_bt" }; int tamanho = 0; String query; /*if(ControlePrincipal.tipo_u.equals("op_scv")){ query = "Select * from controle_madeira"; }else{ query = "Select * from controle_madeira where id_operario = '" +ControlePrincipal.id_op+"'"; }*/ String whereSql; //Controle e definio das variaveis da clausula where like. Filtros String filtro_op_u; String filtro_upc; String filtro_talhao; if (jComboBoxUsuario.getSelectedItem().equals("-")) { filtro_op_u = ""; } else { filtro_op_u = jComboBoxUsuario.getSelectedItem().toString(); } if (jSpinnerUPC.getValue().equals(0)) { filtro_upc = ""; } else { filtro_upc = jSpinnerUPC.getValue().toString(); } if (jSpinnerTalhao.getValue().equals(0)) { filtro_talhao = ""; } else { filtro_talhao = jSpinnerTalhao.getValue().toString(); } //faz busca a partir dos filtros acima whereSql = "where "; if (!filtro_op_u.equals("")) { whereSql += "id_operario = '" + filtro_op_u + "'"; } //System.out.println("whereSql: " + whereSql.length()); if (!filtro_upc.equals("")) { if (whereSql.length() >= 17) { whereSql += " and upc_m = '" + filtro_upc + "'"; } else { whereSql += "upc_m = '" + filtro_upc + "'"; } } if (!filtro_talhao.equals("")) { if (whereSql.length() >= 17) { whereSql += " and talhao = '" + filtro_talhao + "'"; } else { whereSql += "talhao = '" + filtro_talhao + "'"; } } /*if(!filtro_data_i.equals("")){ if(whereSql.length()>=17){ whereSql += " and data_entrada_madeira_forno = '"+filtro_data_i+"'"; }else{ whereSql += "data_entrada_madeira_forno = '"+filtro_data_i+"'"; } } if(!filtro_data_f.equals("")){ if(whereSql.length()>=17){ whereSql += " and data_entrada_madeira_forno = '"+filtro_data_f+"'"; }else{ whereSql += "data_entrada_madeira_forno = '"+filtro_data_f+"'"; } }*/ //System.out.println("whereSql: " + whereSql.length()); if (whereSql.length() < 7) { whereSql = ""; } query = "Select * from controle_madeira " + whereSql; //System.out.println("query: "+query); ConexaoBD con = ConexaoBD.getConexao(0); ResultSet rs = con.consultaSql(query); mStereoTotal = 0; m3Total = 0; pesoTotal = 0; Locale brasil = new Locale("pt", "BR"); DecimalFormat decformat = new DecimalFormat("#,##0.00", new DecimalFormatSymbols(brasil)); SimpleDateFormat newDateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); try { while (rs.next()) { linhas.add(new Object[] { //rs.getString("id_controle_madeira"), rs.getString("id_estoque_p"), rs.getString("id_operario"), rs.getString("upc_m"), rs.getString("talhao"), newDateFormat.format(rs.getTimestamp("data_entrega")), rs.getString("mad_volume_m_stereo"), rs.getString("mad_volume_m3"), rs.getString("altura1_t"), rs.getString("altura2_t"), rs.getString("altura3_t"), rs.getString("comprimento_t"), rs.getString("largura_t"), rs.getString("peso_t"), rs.getString("altura1_bt"), rs.getString("altura2_bt"), rs.getString("altura3_bt"), rs.getString("comprimento_bt"), rs.getString("largura_bt"), rs.getString("peso_bt") }); //volume stereo total if (rs.getString("mad_volume_m_stereo") != null) { mStereoTotal += Float.valueOf(rs.getString("mad_volume_m_stereo")); } //volume cubico total if (rs.getString("mad_volume_m3") != null) { m3Total += Float.valueOf(rs.getString("mad_volume_m3")); } //peso total if (rs.getString("peso_t") != null || rs.getString("peso_bt") != null) { pesoTotal += (Float.valueOf(rs.getString("peso_t")) + Float.valueOf(rs.getString("peso_bt"))); } tamanho++; } jLabelMStereoTotal.setText("Volume stereo total: " + decformat.format(mStereoTotal)); jLabelM3Total.setText("Volume m total: " + decformat.format(m3Total)); jLabelPesoTotal.setText("Peso(t) total: " + decformat.format(pesoTotal)); } catch (SQLException ex) { Logger.getLogger(GerarRelatorioEstoquePrincipal.class.getName()).log(Level.SEVERE, null, ex); JOptionPane.showMessageDialog(null, "Erro ao preencher a tabela! " + ex); } GerarTabela modelo = new GerarTabela(linhas, colunas); jTableMadeiraEstoquePraca.setModel(modelo); for (int i = 0; i < colunas.length; i++) { if (colunas[i].length() <= 8) { jTableMadeiraEstoquePraca.getColumnModel().getColumn(i).setPreferredWidth(colunas[i].length() * 12); } else if (colunas[i].length() > 8 && colunas[i].length() <= 15) { jTableMadeiraEstoquePraca.getColumnModel().getColumn(i).setPreferredWidth(colunas[i].length() * 10); } else { jTableMadeiraEstoquePraca.getColumnModel().getColumn(i).setPreferredWidth(colunas[i].length() * 8); } jTableMadeiraEstoquePraca.getColumnModel().getColumn(i).setResizable(false); //System.out.println("Indice: "+i+" - "+ colunas[i].length()*200); } jTableMadeiraEstoquePraca.getTableHeader().setReorderingAllowed(false); jTableMadeiraEstoquePraca.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); jTableMadeiraEstoquePraca.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); con.fecharConexao(); } private void SelecionarInfo() { if (jTableMadeiraEstoquePraca.getSelectedRow() >= 0)//verifica se a linha a ser alterada esta marcada { int linha = jTableMadeiraEstoquePraca.getSelectedRow(); String id_controle_carvao = jTableMadeiraEstoquePraca.getValueAt(linha, 0).toString(); //String talhao = jTableCarvao.getValueAt(linha, 1).toString(); //String forno = jTableCarvao.getValueAt(linha, 2).toString(); //String id_operario_mad = jTableCarvao.getValueAt(linha, 3).toString(); //String volume_madeira = jTableCarvao.getValueAt(linha, 4).toString(); //String data_entrada_madeira_forno = jTableCarvao.getValueAt(linha, 5).toString(); String id_operario_carv = jTableMadeiraEstoquePraca.getValueAt(linha, 6).toString(); String volume_carvao = jTableMadeiraEstoquePraca.getValueAt(linha, 7).toString(); String data_saida_carvao_forno = jTableMadeiraEstoquePraca.getValueAt(linha, 8).toString(); this.setVisible(false); dispose(); } else JOptionPane.showMessageDialog(null, "Selecione uma linha!"); } private void GerarPDF() throws DocumentException, FileNotFoundException { try { int linha = jTableMadeiraEstoquePraca.getSelectedRow(); Document document = new Document(PageSize.A4, 10, 10, 10, 10); //System.out.println(new File(".").getAbsolutePath()); String arquivo = new File("Relatorio Madeira Praa.").getAbsolutePath() + "pdf"; PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream(arquivo)); document.open(); Font font = new Font(Font.FontFamily.TIMES_ROMAN, 12, Font.BOLD); //String titulo = jTableRelatorioEstoquePrincipal.getValueAt(linha, 3).toString()+ " "+jTableRelatorioEstoquePrincipal.getValueAt(linha, 2).toString()+"-"+jTableRelatorioEstoquePrincipal.getValueAt(linha, 0).toString(); String titulo = "Relatorio Madeira Praa"; Paragraph pgt = new Paragraph(titulo, font); pgt.setAlignment(Element.ALIGN_CENTER); document.add(pgt); document.add(new Paragraph(" ")); /*if(!filtro_matgen.equals("")){ titulo = "Material genetico "+filtro_matgen; }*/ PdfPTable table = new PdfPTable(colunas.length); // Definindo uma fonte, com tamanho 20 e negrito PdfPCell header = new PdfPCell(new Paragraph(titulo, font)); header.setColspan(colunas.length); table.addCell(header); table.setWidthPercentage(100.0f); table.setHorizontalAlignment(Element.ALIGN_JUSTIFIED_ALL); //System.out.println("Tamanho: "+linhas.size()); font = new Font(Font.FontFamily.TIMES_ROMAN, 4, Font.NORMAL); for (String coluna : colunas) { table.addCell(new Paragraph(coluna, font)); } //varias linhas for (int i = 0; i < linhas.size(); i++) {//linha for (int j = 0; j < colunas.length; j++) {//coluna //table.addCell(jTableRelatorioEstoquePrincipal.getValueAt(i, j).toString()); table.addCell(new Paragraph(jTableMadeiraEstoquePraca.getValueAt(i, j).toString(), font)); } } document.add(table); document.add(new Paragraph(" ")); font = new Font(Font.FontFamily.TIMES_ROMAN, 12, Font.BOLD); document.add(new Paragraph("Dados Totais", font)); font = new Font(Font.FontFamily.TIMES_ROMAN, 8, Font.NORMAL); document.add(new Paragraph(jLabelInfo1.getText(), font)); document.add(new Paragraph(jLabelMStereoTotal.getText(), font)); document.add(new Paragraph(jLabelM3Total.getText(), font)); document.add(new Paragraph(jLabelPesoTotal.getText(), font)); document.close(); JOptionPane.showMessageDialog(null, "PDF: " + arquivo + " gerado!"); } catch (FileNotFoundException | DocumentException | HeadlessException ex) { Logger.getLogger(GerarRelatorioEstoqueBasico.class.getName()).log(Level.SEVERE, null, "Erro ao gerar pdf: " + ex); JOptionPane.showMessageDialog(null, "Erro ao gerar pdf: " + ex); } } private void ChangeName() { jLabelNome.setText(ControlePrincipal.nome); jLabelIdTipo.setText(ControlePrincipal.id_op); //ControlePrincipal.tela_anterior = "madeira"; //JOptionPane.showMessageDialog(null, "Tela: "+ControlePrincipal.tela_anterior); } /** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabelTitulo = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabelNome = new javax.swing.JLabel(); jLabelIdTipo = new javax.swing.JLabel(); jPanel2 = new javax.swing.JPanel(); jLabel7 = new javax.swing.JLabel(); jComboBoxUsuario = new javax.swing.JComboBox(); jButtonFiltrar = new javax.swing.JButton(); jLabel2 = new javax.swing.JLabel(); jLabel9 = new javax.swing.JLabel(); jSpinnerTalhao = new javax.swing.JSpinner(); jSpinnerUPC = new javax.swing.JSpinner(); jPanel3 = new javax.swing.JPanel(); jScrollPane2 = new javax.swing.JScrollPane(); jTableMadeiraEstoquePraca = new javax.swing.JTable(); jPanel4 = new javax.swing.JPanel(); jLabelMStereoTotal = new javax.swing.JLabel(); jLabelM3Total = new javax.swing.JLabel(); jLabelInfo1 = new javax.swing.JLabel(); jLabelPesoTotal = new javax.swing.JLabel(); jMenuBar1 = new javax.swing.JMenuBar(); jMenuPrincipal = new javax.swing.JMenu(); jMenuItemGerarPDF = new javax.swing.JMenuItem(); jMenuItemValidade = new javax.swing.JMenuItem(); jMenuItemLogout = new javax.swing.JMenuItem(); jMenuRelatorio = new javax.swing.JMenu(); jMenuItemRelatorioEstoque = new javax.swing.JMenuItem(); jMenuItemRelatorioMadeiraPraca = new javax.swing.JMenuItem(); jMenuItemRelatorioCarvao = new javax.swing.JMenuItem(); jMenuItemRelatorioCarvaoExpedido = new javax.swing.JMenuItem(); jMenuItemRelatorioFornos = new javax.swing.JMenuItem(); jMenuGerenciar = new javax.swing.JMenu(); jMenuItemGerenciarUsuarios = new javax.swing.JMenuItem(); jMenuItemGerenciarFazendas = new javax.swing.JMenuItem(); jMenuItemGerenciarMadeiraPraa = new javax.swing.JMenuItem(); jMenuItemGerenciarCarvaoForno = new javax.swing.JMenuItem(); jMenuItemGerenciarExpedirCarvao = new javax.swing.JMenuItem(); jMenuItemGerenciarEstoque = new javax.swing.JMenuItem(); jMenuItemGerenciarForno = new javax.swing.JMenuItem(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); jLabelTitulo.setFont(new java.awt.Font("Serif", 1, 36)); // NOI18N jLabelTitulo.setHorizontalAlignment(javax.swing.SwingConstants.CENTER); jLabelTitulo.setText("Relatorio Madeira/Praca"); jLabelTitulo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); jLabelTitulo.setPreferredSize(new java.awt.Dimension(275, 60)); jPanel1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED)); jPanel1.setPreferredSize(new java.awt.Dimension(270, 145)); jLabel1.setFont(jLabel1.getFont().deriveFont(jLabel1.getFont().getSize()+4f)); jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); jLabel1.setText("Bem Vindo"); jLabelNome.setFont(jLabelNome.getFont().deriveFont((jLabelNome.getFont().getStyle() | java.awt.Font.ITALIC) | java.awt.Font.BOLD, jLabelNome.getFont().getSize()+4)); jLabelNome.setHorizontalAlignment(javax.swing.SwingConstants.LEFT); jLabelNome.setText("Usuario"); jLabelIdTipo.setFont(jLabelIdTipo.getFont().deriveFont(jLabelIdTipo.getFont().getSize()+1f)); jLabelIdTipo.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); jLabelIdTipo.setText("jLabel2"); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelIdTipo) .addContainerGap()) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabelNome, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jLabel1, jLabelIdTipo, jLabelNome}); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel1) .addGap(18, 18, 18) .addComponent(jLabelNome, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 15, Short.MAX_VALUE) .addComponent(jLabelIdTipo) .addContainerGap()) ); jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jLabel1, jLabelIdTipo, jLabelNome}); jPanel2.setBorder(new javax.swing.border.MatteBorder(null)); jPanel2.setPreferredSize(new java.awt.Dimension(270, 350)); jLabel7.setText("Usuario"); jLabel7.setPreferredSize(new java.awt.Dimension(80, 25)); jComboBoxUsuario.setPreferredSize(new java.awt.Dimension(150, 25)); jButtonFiltrar.setText("Filtrar"); jButtonFiltrar.setPreferredSize(new java.awt.Dimension(100, 25)); jButtonFiltrar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButtonFiltrarActionPerformed(evt); } }); jLabel2.setFont(jLabel2.getFont().deriveFont(jLabel2.getFont().getSize()+1f)); jLabel2.setText("UPC"); jLabel2.setPreferredSize(new java.awt.Dimension(80, 25)); jLabel9.setFont(jLabel9.getFont().deriveFont(jLabel9.getFont().getSize()+1f)); jLabel9.setText("Talhao"); jLabel9.setPreferredSize(new java.awt.Dimension(80, 25)); jSpinnerTalhao.setFont(jSpinnerTalhao.getFont().deriveFont(jSpinnerTalhao.getFont().getSize()+1f)); jSpinnerTalhao.setModel(new javax.swing.SpinnerNumberModel(0, 0, 999, 1)); jSpinnerTalhao.setPreferredSize(new java.awt.Dimension(150, 25)); jSpinnerUPC.setFont(jSpinnerUPC.getFont().deriveFont(jSpinnerUPC.getFont().getSize()+1f)); jSpinnerUPC.setModel(new javax.swing.SpinnerNumberModel(0, 0, 9, 1)); jSpinnerUPC.setPreferredSize(new java.awt.Dimension(150, 25)); javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2); jPanel2.setLayout(jPanel2Layout); jPanel2Layout.setHorizontalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(10, 10, 10) .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(10, 10, 10) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jButtonFiltrar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jComboBoxUsuario, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(10, 10, 10)) .addGroup(jPanel2Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel9, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(10, 10, 10) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jSpinnerTalhao, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jSpinnerUPC, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jPanel2Layout.setVerticalGroup( jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel2Layout.createSequentialGroup() .addGap(10, 10, 10) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jComboBoxUsuario, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(10, 10, 10) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jSpinnerUPC, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(10, 10, 10) .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jSpinnerTalhao, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(10, 10, 10) .addComponent(jButtonFiltrar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(10, 10, 10)) ); jPanel3.setPreferredSize(new java.awt.Dimension(500, 500)); jScrollPane2.setViewportView(jTableMadeiraEstoquePraca); javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3); jPanel3.setLayout(jPanel3Layout); jPanel3Layout.setHorizontalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane2) ); jPanel3Layout.setVerticalGroup( jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane2) ); jLabelMStereoTotal.setFont(jLabelMStereoTotal.getFont()); jLabelMStereoTotal.setText("Volume stereo total: 0"); jLabelMStereoTotal.setPreferredSize(new java.awt.Dimension(200, 15)); jLabelM3Total.setFont(jLabelM3Total.getFont()); jLabelM3Total.setText("Volume m total: 0"); jLabelM3Total.setPreferredSize(new java.awt.Dimension(200, 15)); jLabelInfo1.setFont(jLabelInfo1.getFont().deriveFont(jLabelInfo1.getFont().getStyle() | java.awt.Font.BOLD, 12)); jLabelInfo1.setText("Informaes Gerais"); jLabelInfo1.setPreferredSize(new java.awt.Dimension(200, 15)); jLabelPesoTotal.setFont(jLabelPesoTotal.getFont()); jLabelPesoTotal.setText("Peso(t) total: 0"); jLabelPesoTotal.setPreferredSize(new java.awt.Dimension(200, 15)); javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4); jPanel4.setLayout(jPanel4Layout); jPanel4Layout.setHorizontalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGap(5, 5, 5) .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addComponent(jLabelInfo1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) .addGap(532, 532, 532)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup() .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(jLabelM3Total, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelMStereoTotal, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabelPesoTotal, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(531, 531, 531)))) ); jPanel4Layout.setVerticalGroup( jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel4Layout.createSequentialGroup() .addGap(5, 5, 5) .addComponent(jLabelInfo1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(5, 5, 5) .addComponent(jLabelMStereoTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(5, 5, 5) .addComponent(jLabelM3Total, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(5, 5, 5) .addComponent(jLabelPesoTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(5, 5, 5)) ); jMenuPrincipal.setText("Menu"); jMenuItemGerarPDF.setText("Gerar PDF"); jMenuItemGerarPDF.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemGerarPDFActionPerformed(evt); } }); jMenuPrincipal.add(jMenuItemGerarPDF); jMenuItemValidade.setText("Validade"); jMenuItemValidade.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemValidadeActionPerformed(evt); } }); jMenuPrincipal.add(jMenuItemValidade); jMenuItemLogout.setText("Logout"); jMenuItemLogout.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemLogoutActionPerformed(evt); } }); jMenuPrincipal.add(jMenuItemLogout); jMenuBar1.add(jMenuPrincipal); jMenuRelatorio.setText("Relatorios"); jMenuItemRelatorioEstoque.setText("Estoque"); jMenuItemRelatorioEstoque.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemRelatorioEstoqueActionPerformed(evt); } }); jMenuRelatorio.add(jMenuItemRelatorioEstoque); jMenuItemRelatorioMadeiraPraca.setText("Madeira/Praa"); jMenuItemRelatorioMadeiraPraca.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemRelatorioMadeiraPracaActionPerformed(evt); } }); jMenuRelatorio.add(jMenuItemRelatorioMadeiraPraca); jMenuItemRelatorioCarvao.setText("Carvo"); jMenuItemRelatorioCarvao.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemRelatorioCarvaoActionPerformed(evt); } }); jMenuRelatorio.add(jMenuItemRelatorioCarvao); jMenuItemRelatorioCarvaoExpedido.setText("Carvo Expedido"); jMenuItemRelatorioCarvaoExpedido.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemRelatorioCarvaoExpedidoActionPerformed(evt); } }); jMenuRelatorio.add(jMenuItemRelatorioCarvaoExpedido); jMenuItemRelatorioFornos.setText("Fornos"); jMenuItemRelatorioFornos.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemRelatorioFornosActionPerformed(evt); } }); jMenuRelatorio.add(jMenuItemRelatorioFornos); jMenuBar1.add(jMenuRelatorio); jMenuGerenciar.setText("Gerenciar"); jMenuItemGerenciarUsuarios.setText("Usuarios"); jMenuItemGerenciarUsuarios.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemGerenciarUsuariosActionPerformed(evt); } }); jMenuGerenciar.add(jMenuItemGerenciarUsuarios); jMenuItemGerenciarFazendas.setText("Fazendas"); jMenuItemGerenciarFazendas.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemGerenciarFazendasActionPerformed(evt); } }); jMenuGerenciar.add(jMenuItemGerenciarFazendas); jMenuItemGerenciarMadeiraPraa.setText("Madeira/Praa"); jMenuItemGerenciarMadeiraPraa.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemGerenciarMadeiraPraaActionPerformed(evt); } }); jMenuGerenciar.add(jMenuItemGerenciarMadeiraPraa); jMenuItemGerenciarCarvaoForno.setText("Carvao/Forno"); jMenuItemGerenciarCarvaoForno.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemGerenciarCarvaoFornoActionPerformed(evt); } }); jMenuGerenciar.add(jMenuItemGerenciarCarvaoForno); jMenuItemGerenciarExpedirCarvao.setText("ExpedirCarvo"); jMenuItemGerenciarExpedirCarvao.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemGerenciarExpedirCarvaoActionPerformed(evt); } }); jMenuGerenciar.add(jMenuItemGerenciarExpedirCarvao); jMenuItemGerenciarEstoque.setText("Estoque"); jMenuItemGerenciarEstoque.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemGerenciarEstoqueActionPerformed(evt); } }); jMenuGerenciar.add(jMenuItemGerenciarEstoque); jMenuItemGerenciarForno.setText("Fornos"); jMenuItemGerenciarForno.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItemGerenciarFornoActionPerformed(evt); } }); jMenuGerenciar.add(jMenuItemGerenciarForno); jMenuBar1.add(jMenuGerenciar); setJMenuBar(jMenuBar1); 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(10, 10, 10) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(10, 10, 10) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 736, Short.MAX_VALUE) .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addComponent(jLabelTitulo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(10, 10, 10)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(10, 10, 10) .addComponent(jLabelTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(10, 10, 10) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(10, 10, 10) .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 502, Short.MAX_VALUE)) .addGroup(layout.createSequentialGroup() .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 562, Short.MAX_VALUE) .addGap(10, 10, 10) .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(10, 10, 10)) ); pack(); }// </editor-fold>//GEN-END:initComponents private void jButtonFiltrarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonFiltrarActionPerformed //_carregarUsuarios(); PreencherTabela(); //JOptionPane.showMessageDialog(null, jListFiltrar.getSelectedValuesList()); }//GEN-LAST:event_jButtonFiltrarActionPerformed private void jMenuItemRelatorioMadeiraPracaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemRelatorioMadeiraPracaActionPerformed try { new GerarRelatorioMadeiraPraca().setVisible(true); } catch (SQLException ex) { Logger.getLogger(GerarRelatorioEstoqueBasico.class.getName()).log(Level.SEVERE, null, ex); } this.setVisible(false); dispose(); }//GEN-LAST:event_jMenuItemRelatorioMadeiraPracaActionPerformed private void jMenuItemRelatorioCarvaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemRelatorioCarvaoActionPerformed try { new GerarRelatorioCarvao().setVisible(true); } catch (SQLException ex) { Logger.getLogger(GerarRelatorioEstoqueBasico.class.getName()).log(Level.SEVERE, null, ex); } this.setVisible(false); dispose(); }//GEN-LAST:event_jMenuItemRelatorioCarvaoActionPerformed private void jMenuItemRelatorioCarvaoExpedidoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemRelatorioCarvaoExpedidoActionPerformed try { new GerarRelatorioCarvaoExpedido().setVisible(true); } catch (SQLException ex) { Logger.getLogger(GerarRelatorioMadeiraPraca.class.getName()).log(Level.SEVERE, null, ex); } this.setVisible(false); dispose(); }//GEN-LAST:event_jMenuItemRelatorioCarvaoExpedidoActionPerformed private void jMenuItemGerenciarUsuariosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGerenciarUsuariosActionPerformed try { new GerenciarUsuarios().setVisible(true); } catch (SQLException ex) { Logger.getLogger(GerarRelatorioEstoqueBasico.class.getName()).log(Level.SEVERE, null, ex); } this.setVisible(false); dispose(); }//GEN-LAST:event_jMenuItemGerenciarUsuariosActionPerformed private void jMenuItemGerenciarFazendasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGerenciarFazendasActionPerformed try { new GerenciarFazenda().setVisible(true); } catch (SQLException ex) { Logger.getLogger(GerarRelatorioEstoqueBasico.class.getName()).log(Level.SEVERE, null, ex); } this.setVisible(false); dispose(); }//GEN-LAST:event_jMenuItemGerenciarFazendasActionPerformed private void jMenuItemGerenciarMadeiraPraaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGerenciarMadeiraPraaActionPerformed try { new GerenciarMadeiraPraca().setVisible(true); ControlePrincipal.tipo_estoque="madeira"; } catch (SQLException ex) { Logger.getLogger(GerarRelatorioEstoqueBasico.class.getName()).log(Level.SEVERE, null, ex); } this.setVisible(false); dispose(); }//GEN-LAST:event_jMenuItemGerenciarMadeiraPraaActionPerformed private void jMenuItemGerenciarCarvaoFornoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGerenciarCarvaoFornoActionPerformed try { new GerenciarCarvaoForno().setVisible(true); ControlePrincipal.tipo_estoque = "carvao"; } catch (SQLException ex) { Logger.getLogger(GerarRelatorioEstoqueBasico.class.getName()).log(Level.SEVERE, null, ex); } this.setVisible(false); dispose(); }//GEN-LAST:event_jMenuItemGerenciarCarvaoFornoActionPerformed private void jMenuItemGerenciarExpedirCarvaoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGerenciarExpedirCarvaoActionPerformed try { new GerenciarEnvioCarvao().setVisible(true); ControlePrincipal.tipo_estoque = "carvao"; } catch (SQLException ex) { Logger.getLogger(GerarRelatorioEstoqueBasico.class.getName()).log(Level.SEVERE, null, ex); } this.setVisible(false); dispose(); }//GEN-LAST:event_jMenuItemGerenciarExpedirCarvaoActionPerformed private void jMenuItemGerenciarEstoqueActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGerenciarEstoqueActionPerformed try { new GerenciarEstoquePrincipal().setVisible(true); } catch (SQLException ex) { Logger.getLogger(GerarRelatorioEstoqueBasico.class.getName()).log(Level.SEVERE, null, ex); } this.setVisible(false); dispose(); }//GEN-LAST:event_jMenuItemGerenciarEstoqueActionPerformed private void jMenuItemLogoutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemLogoutActionPerformed new Login().setVisible(true); this.setVisible(false); dispose(); }//GEN-LAST:event_jMenuItemLogoutActionPerformed private void jMenuItemValidadeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemValidadeActionPerformed // TODO add your handling code here: JOptionPane.showMessageDialog(null, "Validado at: " + ControlePrincipal.validade); }//GEN-LAST:event_jMenuItemValidadeActionPerformed private void jMenuItemGerarPDFActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGerarPDFActionPerformed try { //AlterarInfo(); //SelecionarTalhao(); GerarPDF(); } catch (DocumentException | FileNotFoundException ex) { Logger.getLogger(GerarRelatorioEstoqueBasico.class.getName()).log(Level.SEVERE, null, ex); JOptionPane.showMessageDialog(null, "Gerar PDF Error: " + ex); } }//GEN-LAST:event_jMenuItemGerarPDFActionPerformed private void jMenuItemRelatorioEstoqueActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemRelatorioEstoqueActionPerformed try { new GerarRelatorioEstoqueBasico().setVisible(true); } catch (SQLException ex) { Logger.getLogger(GerarRelatorioMadeiraPraca.class.getName()).log(Level.SEVERE, null, ex); } this.setVisible(false); dispose(); }//GEN-LAST:event_jMenuItemRelatorioEstoqueActionPerformed private void jMenuItemRelatorioFornosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemRelatorioFornosActionPerformed new GerarRelatorioForno().setVisible(true); this.dispose(); }//GEN-LAST:event_jMenuItemRelatorioFornosActionPerformed private void jMenuItemGerenciarFornoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGerenciarFornoActionPerformed new GerenciarForno().setVisible(true); this.setVisible(false); dispose(); }//GEN-LAST:event_jMenuItemGerenciarFornoActionPerformed /** * @param args the command line arguments */ public static void main(String args[]) { /* Set the Nimbus look and feel */ //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html */ try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); break; } } } catch (ClassNotFoundException ex) { java.util.logging.Logger.getLogger(GerarRelatorioMadeiraPraca.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (InstantiationException ex) { java.util.logging.Logger.getLogger(GerarRelatorioMadeiraPraca.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (IllegalAccessException ex) { java.util.logging.Logger.getLogger(GerarRelatorioMadeiraPraca.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } catch (javax.swing.UnsupportedLookAndFeelException ex) { java.util.logging.Logger.getLogger(GerarRelatorioMadeiraPraca.class.getName()) .log(java.util.logging.Level.SEVERE, null, ex); } //</editor-fold> //</editor-fold> //</editor-fold> //</editor-fold> /* Create and display the form */ java.awt.EventQueue.invokeLater(() -> { try { new GerarRelatorioMadeiraPraca().setVisible(true); } catch (SQLException ex) { Logger.getLogger(GerarRelatorioMadeiraPraca.class.getName()).log(Level.SEVERE, null, ex); } }); } // Variables declaration - do not modify//GEN-BEGIN:variables private javax.swing.JButton jButtonFiltrar; private javax.swing.JComboBox jComboBoxUsuario; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel7; private javax.swing.JLabel jLabel9; private javax.swing.JLabel jLabelIdTipo; private javax.swing.JLabel jLabelInfo1; private javax.swing.JLabel jLabelM3Total; private javax.swing.JLabel jLabelMStereoTotal; private javax.swing.JLabel jLabelNome; private javax.swing.JLabel jLabelPesoTotal; private javax.swing.JLabel jLabelTitulo; private javax.swing.JMenuBar jMenuBar1; private javax.swing.JMenu jMenuGerenciar; private javax.swing.JMenuItem jMenuItemGerarPDF; private javax.swing.JMenuItem jMenuItemGerenciarCarvaoForno; private javax.swing.JMenuItem jMenuItemGerenciarEstoque; private javax.swing.JMenuItem jMenuItemGerenciarExpedirCarvao; private javax.swing.JMenuItem jMenuItemGerenciarFazendas; private javax.swing.JMenuItem jMenuItemGerenciarForno; private javax.swing.JMenuItem jMenuItemGerenciarMadeiraPraa; private javax.swing.JMenuItem jMenuItemGerenciarUsuarios; private javax.swing.JMenuItem jMenuItemLogout; private javax.swing.JMenuItem jMenuItemRelatorioCarvao; private javax.swing.JMenuItem jMenuItemRelatorioCarvaoExpedido; private javax.swing.JMenuItem jMenuItemRelatorioEstoque; private javax.swing.JMenuItem jMenuItemRelatorioFornos; private javax.swing.JMenuItem jMenuItemRelatorioMadeiraPraca; private javax.swing.JMenuItem jMenuItemValidade; private javax.swing.JMenu jMenuPrincipal; private javax.swing.JMenu jMenuRelatorio; private javax.swing.JPanel jPanel1; private javax.swing.JPanel jPanel2; private javax.swing.JPanel jPanel3; private javax.swing.JPanel jPanel4; private javax.swing.JScrollPane jScrollPane2; private javax.swing.JSpinner jSpinnerTalhao; private javax.swing.JSpinner jSpinnerUPC; private javax.swing.JTable jTableMadeiraEstoquePraca; // End of variables declaration//GEN-END:variables }