sample - package conference; import java.awt.event.*;...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.awt.event.*; import javax.swing.*; import java.awt.*; import java.sql.*; public class sample implements ActionListener { JFrame f1=null,f2=null,f3=null,f5=null; JButton admin=null,user=null,b1=null,b2=null,b7=null,b8=null,b9=null; public JPasswordField s2=null,s1=null; public JTextField t2=null; public JTextField text1=null; JPanel p1=null,p2=null,p4=null; String[] kk; String[] len; String lldup,lll,mm,pp; Connection con; Statement stml; ResultSet rs; int i=0,m,u=0; /// det function public void det() { len=new String[20]; kk=new String[20]; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con = DriverManager.getConnection("Jdbc:Odbc:userdetails","",""); stml = con.createStatement(); rs=stml.executeQuery("select empid,password from details"); while( { len[i]=rs.getString(1); kk[i]=rs.getString(2); i++; } } catch(Exception e){System.out.println(e);} } // end /////function public void usermet() { f2=new JFrame("User operation"); p2=new JPanel();
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 09/08/2011 for the course COMPUTERS 100 taught by Professor Sinha during the Spring '05 term at IIT Kanpur.

Page1 / 4

sample - package conference; import java.awt.event.*;...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online