always regenerated by the Form Editor.
*/
@SuppressWarnings(“unchecked”)
//
private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();
jScrollPane2 = new javax.swing.JScrollPane();
jTable2 = new javax.swing.JTable();
jPanel1 = new javax.swing.JPanel();
vender = new javax.swing.JButton();
ConsultaProdut = new javax.swing.JButton();
ImprimirNfe = new javax.swing.JButton();
label_data = new javax.swing.JLabel();
jLabel1 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
jComboBox1 = new javax.swing.JComboBox();
jButton1 = new javax.swing.JButton();
jScrollPane3 = new javax.swing.JScrollPane();
jTable3 = new javax.swing.JTable();
jMenuBar1 = new javax.swing.JMenuBar();
Cadastro = new javax.swing.JMenu();
Clientes = new javax.swing.JMenu();
j_novocliente = new javax.swing.JMenuItem();
Fornecedores = new javax.swing.JMenu();
NovoFornecedor = new javax.swing.JMenuItem();
Produto = new javax.swing.JMenu();
NovoProduto = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
jMenuItem4 = new javax.swing.JMenuItem();
Vendas = new javax.swing.JMenu();
NovaVenda = new javax.swing.JMenuItem();
ConsultarVenda = new javax.swing.JMenuItem();
Relatorios = new javax.swing.JMenu();
Relatorio_vendas = new javax.swing.JMenuItem();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenuItem2 = new javax.swing.JMenuItem();
jMenuItem3 = new javax.swing.JMenuItem();
Sair = new javax.swing.JMenu();
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
“Title 1”, “Title 2”, “Title 3”, “Title 4”
}
));
jScrollPane1.setViewportView(jTable1);
jTable2.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
“Title 1”, “Title 2”, “Title 3”, “Title 4”
}
));
jScrollPane2.setViewportView(jTable2);
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle(“Gerenciamento de vendas”);
setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
setLocationByPlatform(true);
setMaximizedBounds(new java.awt.Rectangle(20, 20, 0, 0));
setMinimumSize(new java.awt.Dimension(50, 200));
vender.setText(“Nova Venda”);
vender.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
venderActionPerformed(evt);
}
});
ConsultaProdut.setText(“Caixa”);
ImprimirNfe.setText(“Imprimir NFe”);
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(26, 26, 26)
.addComponent(vender)
.addGap(64, 64, 64)
.addComponent(ConsultaProdut, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 43, Short.MAX_VALUE)
.addComponent(ImprimirNfe)
.addGap(37, 37, 37))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(32, 32, 32)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(ConsultaProdut)
.addComponent(vender)
.addComponent(ImprimirNfe))
.addContainerGap(32, Short.MAX_VALUE))
);
label_data.setText(“Data :”);
jLabel1.setFont(new java.awt.Font(“Tahoma”, 1, 11));
jLabel1.setText(“Procurar”);
jLabel2.setFont(new java.awt.Font(“Tahoma”, 1, 11));
jLabel2.setText(“Categoria”);
jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { “Produto” }));
jButton1.setText(“Ok”);
jTable3.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null}
},
new String [] {
“Produto”, “Valor”
}
) {
Class[] types = new Class [] {
java.lang.String.class, java.lang.Double.class
};
public Class getColumnClass(int columnIndex) {
return types [columnIndex];
}
});
jScrollPane3.setViewportView(jTable3);
Cadastro.setMnemonic(‘C’);
Cadastro.setText(“Cadastro”);
Clientes.setText(“Clientes”);
j_novocliente.setText(“Novo Cliente”);
j_novocliente.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
j_novoclienteActionPerformed(evt);
}
});
Clientes.add(j_novocliente);
Cadastro.add(Clientes);
Fornecedores.setText(“Fornecedores”);
NovoFornecedor.setText(“Novo Fornecedor”);
NovoFornecedor.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
NovoFornecedorActionPerformed(evt);
}
});
Fornecedores.add(NovoFornecedor);
Cadastro.add(Fornecedores);
Produto.setText(“Produto”);
NovoProduto.setText(“Novo Produto”);
NovoProduto.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
NovoProdutoActionPerformed(evt);
}
});
Produto.add(NovoProduto);
Cadastro.add(Produto);
jMenuBar1.add(Cadastro);
jMenu2.setMnemonic(‘E’);
jMenu2.setText(“Estoque”);
jMenuItem4.setText(“Entrada de Estoque”);
jMenu2.add(jMenuItem4);
jMenuBar1.add(jMenu2);
Vendas.setMnemonic(‘V’);
Vendas.setText(“Vendas”);
NovaVenda.setText(“Nova Venda”);
NovaVenda.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
NovaVendaActionPerformed(evt);
}
});
Vendas.add(NovaVenda);
ConsultarVenda.setText(“Consultar Venda”);
Vendas.add(ConsultarVenda);
jMenuBar1.add(Vendas);
Relatorios.setMnemonic(‘R’);
Relatorios.setText(“Relatorios”);
Relatorio_vendas.setText(“Relatorio de Vendas”);
Relatorios.add(Relatorio_vendas);
jMenuBar1.add(Relatorios);
jMenu1.setMnemonic(‘A’);
jMenu1.setText(“Ajuda”);
jMenuItem1.setText(“Sobre o Sistema”);
jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem1ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem1);
jMenuItem2.setText(“Atualizacoes”);
jMenu1.add(jMenuItem2);
jMenuItem3.setText(“Ajuda”);
jMenu1.add(jMenuItem3);
jMenuBar1.add(jMenu1);
Sair.setMnemonic(‘S’);
Sair.setText(“Sair”);
Sair.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
SairActionPerformed(evt);
}
});
jMenuBar1.add(Sair);
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()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(label_data)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(layout.createSequentialGroup()
.addGap(38, 38, 38)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 208, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jButton1))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel1)
.addGap(170, 170, 170)
.addComponent(jLabel2))))
.addGroup(layout.createSequentialGroup()
.addGap(23, 23, 23)
.addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 450, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(25, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(jLabel2))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton1))
.addGap(18, 18, 18)
.addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 73, Short.MAX_VALUE)
.addComponent(label_data))
);
pack();
}//