|
Ola' Pessoal !
Gostaria de saber o que esta errado no codigo
abaixo, sendo que quando chega na linha onde o stmt (Statement) recebe o
createStatement da variavel con (Connection), o Applet simplesmente nao passa
para a proxima linha.
Agradeco a
atencao,
Rafael Demetrio Benvenutti - Instituto Curitiba de
Informatica
public boolean action(Event e,Object
o){
if(e.target == b_Pesquisar){ try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con = DriverManager.getConnection(url,"usuario","senha"); stmt = con.createStatement(); tabGuia = stmt.executeQuery("SELECT DISTINCT T1.Codigo, Descricao from GAZ_Atividades T1, GAZ_PalavraChave T2 WHERE T1.Codigo=T2.Codigo AND T2.PalavraChave='"+t_PalChave+"' ORDER BY T1.Descricao"); while(tabGuia.next()){ c_At1.addItem(tabGuia.getString("Atividade")); } c_At1.select(1); } catch(ClassNotFoundException c){ t_Codigo.setText(c.getMessage()); } catch(SQLException ex){ t_Codigo.setText(ex.getMessage()); } } |
