Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword
Like this
3Activity
×
0 of .
Results for:
No results containing your search query
P. 1
DlgVendedor

DlgVendedor

Ratings: (0)|Views: 367|Likes:
Published by deonatorox

More info:

Published by: deonatorox on Dec 09, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See More
See less

02/01/2013

pdf

text

original

 
package dlg;import java.awt.Dimension;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.sql.Connection;import java.sql.SQLException;import java.util.ArrayList;import javax.swing.JButton;import javax.swing.JDialog;import javax.swing.JScrollPane;import javax.swing.JTable;import javax.swing.JTextField;import javax.swing.table.DefaultTableModel;import util.Conecta;import bean.BeanVendedor;import dao.DaoVendedor;public class DlgVendedor extends JDialog{private JTable tabela;private DefaultTableModel modelo;private JScrollPanescroll;private JButton botaoOk = new JButton( "OK" );private JButton botaoSair = new JButton( "Sair" );private JTextField campoCodigo; public DlgVendedor( JTextField campo ){super();getContentPane().setLayout( null );setSize( 450, 350 );setResizable( false );setLocationRelativeTo( null );setTitle( "PESQUISA DE VENDEDORES" ); campoCodigo = campo; setDados();setComponentes();addComponentes();} // Carregando os dados na tabelapublic void setDados(){ try{Connection conn = Conecta.getConexao();ArrayList<BeanVendedor> arrayVendedores =DaoVendedor.listar( conn ); String[] objColunas = new String[]{ "Cdigo", "Nome" };
String[][] objDados = new String[ arrayVendedores.size() ][2]; for ( int i=0; i<arrayVendedores.size(); i++){BeanVendedor vendedor = (BeanVendedor) arrayVendedores.get( i ); 

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->