<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6030332022157572596</id><updated>2011-11-27T15:53:32.252-08:00</updated><title type='text'>Easy Java Learning Point</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://javalearningpoint.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://javalearningpoint.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ASP</name><uri>http://www.blogger.com/profile/17640911732814769558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>10</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6030332022157572596.post-3019396808682039</id><published>2007-09-23T22:04:00.002-07:00</published><updated>2007-09-23T22:05:40.299-07:00</updated><title type='text'>SEARCH DATA</title><content type='html'>&lt;span style="font-weight: bold;"&gt;/*PROGRAME  TO SEARCH  PARTICULAR DATA*/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;import java.awt.*;&lt;br /&gt;import java.awt.event.*;&lt;br /&gt;import javax.swing.*;&lt;br /&gt;import java.sql.*;&lt;br /&gt;class Search&lt;br /&gt;{&lt;br /&gt;public Search()&lt;br /&gt;{&lt;br /&gt;final JFrame jf = new JFrame("Search");&lt;br /&gt;jf.setSize(800,500);&lt;br /&gt;jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;br /&gt;jf.getContentPane().setLayout(null);&lt;br /&gt;Font f1 = new Font("sansserif",Font.BOLD,24);&lt;br /&gt;Label l3 = new Label("ADDRESS BOOK");&lt;br /&gt;l3.setBounds(250,10,800,40);&lt;br /&gt;l3.setFont(f1);&lt;br /&gt;jf.getContentPane().add(l3);&lt;br /&gt;final TextArea ta = new TextArea();&lt;br /&gt;ta.setBounds(0,120,1000,600);&lt;br /&gt;ta.setEditable(false);&lt;br /&gt;jf.getContentPane().add(ta);&lt;br /&gt;Label l = new Label ("SEARCH BY NAME:");&lt;br /&gt;l.setBounds(5,60,110,30);&lt;br /&gt;jf.getContentPane().add(l);&lt;br /&gt;final TextField tf = new TextField();&lt;br /&gt;tf.setBounds(130,60,100,30);&lt;br /&gt;jf.getContentPane().add(tf);&lt;br /&gt;Label l1 = new Label ("TELEPHONE:");&lt;br /&gt;l1.setBounds(250,60,100,30);&lt;br /&gt;jf.getContentPane().add(l1);&lt;br /&gt;final TextField tf1 = new TextField();&lt;br /&gt;tf1.setBounds(350,60,100,30);&lt;br /&gt;jf.getContentPane().add(tf1);&lt;br /&gt;Button b1 = new Button("SEARCH");&lt;br /&gt;b1.setBounds(480,60,60,30);&lt;br /&gt;b1.addActionListener(new ActionListener()&lt;br /&gt;{&lt;br /&gt;public void actionPerformed(ActionEvent e)&lt;br /&gt;{&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;String s6,s,s1,s3,s4,d,s0="1233";&lt;br /&gt;long s2,s5;&lt;br /&gt;s = tf.getText();&lt;br /&gt;s6=tf1.getText();&lt;br /&gt;if(s6.equals(""))&lt;br /&gt;s5=Long.parseLong(s0);&lt;br /&gt;else&lt;br /&gt;s5 = Long.parseLong(tf1.getText());&lt;br /&gt;Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");&lt;br /&gt;final Connection con =DriverManager.getConnection("jdbc:odbc:student");&lt;br /&gt;Statement st = con.createStatement();&lt;br /&gt;ResultSet rs = st.executeQuery("Select * From addressb");&lt;br /&gt;while(rs.next())&lt;br /&gt;{&lt;br /&gt;s1 = rs.getString(1);&lt;br /&gt;s2 = rs.getLong(2);&lt;br /&gt;s3 = rs.getString(3);&lt;br /&gt;s4 = rs.getString(4);&lt;br /&gt;d =  rs.getString(5);&lt;br /&gt;System.out.println("gotstring");&lt;br /&gt;if((s1.equals(s))||(s2==s5))&lt;br /&gt;{&lt;br /&gt;System.out.println("string equal");&lt;br /&gt;ta.append("NAME                   : "+s1+"\n");&lt;br /&gt;ta.append("PHONE NO         : "+s2+"\n");&lt;br /&gt;ta.append("ADDRESS           : "+s3+"\n");&lt;br /&gt;ta.append("EMAIL ID              : "+s4+"\n");&lt;br /&gt;ta.append("DATE OF BIRTH : "+s5+"\n");&lt;br /&gt;ta.append("**************************************"+"\n");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;catch(Exception e1){System.out.println("ERROR="+e1);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;jf.getContentPane().add(b1);&lt;br /&gt;Button b2 = new Button("ADD");&lt;br /&gt;b2.setBounds(550,60,60,30);&lt;br /&gt;b2.addActionListener(new ActionListener()&lt;br /&gt;{&lt;br /&gt;public void actionPerformed(ActionEvent e)&lt;br /&gt;{&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;Add a = new Add();&lt;br /&gt;}&lt;br /&gt;catch(Exception e2){}&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;jf.getContentPane().add(b2);&lt;br /&gt;Button b3 = new Button("EXIT");&lt;br /&gt;Button b4 = new Button("DELETE");&lt;br /&gt;b4.setBounds(620,60,60,30);&lt;br /&gt;b4.addActionListener(new ActionListener()&lt;br /&gt;{&lt;br /&gt;public void actionPerformed(ActionEvent e4)&lt;br /&gt;{&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;Delete d = new Delete();&lt;br /&gt;}&lt;br /&gt;catch(Exception e5){}&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;jf.getContentPane().add(b4);&lt;br /&gt;b3.setBounds(690,60,60,30);&lt;br /&gt;b3.addActionListener(new ActionListener()&lt;br /&gt;{&lt;br /&gt;public void actionPerformed(ActionEvent e2)&lt;br /&gt;{&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;System.exit(0);&lt;br /&gt;}&lt;br /&gt;catch(Exception e3){}&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;jf.getContentPane().add(b3);&lt;br /&gt;jf.show();&lt;br /&gt;}&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6030332022157572596-3019396808682039?l=javalearningpoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javalearningpoint.blogspot.com/feeds/3019396808682039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6030332022157572596&amp;postID=3019396808682039' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/3019396808682039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/3019396808682039'/><link rel='alternate' type='text/html' href='http://javalearningpoint.blogspot.com/2007/09/search-data.html' title='SEARCH DATA'/><author><name>ASP</name><uri>http://www.blogger.com/profile/17640911732814769558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6030332022157572596.post-3089316259413630776</id><published>2007-09-23T22:04:00.001-07:00</published><updated>2007-09-23T22:04:45.875-07:00</updated><title type='text'>DELETE DATA</title><content type='html'>&lt;span style="font-weight: bold;"&gt;/*PROGRAME TO DELETE DATA*/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;import java.io.*;&lt;br /&gt;import java.awt.*;&lt;br /&gt;import java.awt.event.*;&lt;br /&gt;import javax.swing.*;&lt;br /&gt;import java.sql.*;&lt;br /&gt;class Delete&lt;br /&gt;{&lt;br /&gt;public Delete() throws Exception&lt;br /&gt;{&lt;br /&gt;final JFrame jf = new JFrame("DELETE");&lt;br /&gt;jf.setSize(600,500);&lt;br /&gt;jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;br /&gt;jf.getContentPane().setLayout(null);&lt;br /&gt;Font f1 = new Font("sansserif",Font.BOLD,24);&lt;br /&gt;Label l3 = new Label("ADDRESS BOOK");&lt;br /&gt;l3.setBounds(200,10,800,40);&lt;br /&gt;l3.setFont(f1);&lt;br /&gt;jf.getContentPane().add(l3);&lt;br /&gt;Label l = new Label ("DELETE BY NAME:");&lt;br /&gt;l.setBounds(170,110,110,30);&lt;br /&gt;jf.getContentPane().add(l);&lt;br /&gt;final TextField tf = new TextField();&lt;br /&gt;tf.setBounds(300,110,150,30);&lt;br /&gt;jf.getContentPane().add(tf);&lt;br /&gt;Label l1 = new Label ("TELEPHONE:");&lt;br /&gt;l1.setBounds(170,160,100,30);&lt;br /&gt;jf.getContentPane().add(l1);&lt;br /&gt;final TextField tf1 = new TextField();&lt;br /&gt;tf1.setBounds(300,160,150,30);&lt;br /&gt;jf.getContentPane().add(tf1);&lt;br /&gt;Button b1 = new Button("DELETE");&lt;br /&gt;b1.setBounds(200,210,60,30);&lt;br /&gt;b1.addActionListener(new ActionListener()&lt;br /&gt;{&lt;br /&gt;public void actionPerformed(ActionEvent e)&lt;br /&gt;{&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;long s2,s5;&lt;br /&gt;String s0,s6;&lt;br /&gt;s0 = tf.getText();&lt;br /&gt;s6=tf1.getText();&lt;br /&gt;Connection cn;&lt;br /&gt;Statement st;&lt;br /&gt;Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");&lt;br /&gt;cn=DriverManager.getConnection("jdbc:odbc:student");&lt;br /&gt;st=cn.createStatement();&lt;br /&gt;st.executeUpdate("Delete from addressb where name='"+s0+"'");&lt;br /&gt;st.close();&lt;br /&gt;}&lt;br /&gt;catch(Exception e1){System.out.println("ERROR="+e1);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;jf.getContentPane().add(b1);&lt;br /&gt;Button b2 = new Button("ADD");&lt;br /&gt;b2.setBounds(300,210,60,30);b2.addActionListener(new ActionListener()&lt;br /&gt;{&lt;br /&gt;public void actionPerformed(ActionEvent e)&lt;br /&gt;{&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;Add a = new Add();&lt;br /&gt;}&lt;br /&gt;catch(Exception e2)&lt;br /&gt;{}&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;jf.getContentPane().add(b2);&lt;br /&gt;Button b3 = new Button("EXIT");&lt;br /&gt;b3.setBounds(400,210,60,30);&lt;br /&gt;b3.addActionListener(new ActionListener()&lt;br /&gt;{&lt;br /&gt;public void actionPerformed(ActionEvent e2)&lt;br /&gt;{&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;System.exit(0);&lt;br /&gt;}&lt;br /&gt;catch(Exception e3)&lt;br /&gt;{}&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;jf.getContentPane().add(b3);&lt;br /&gt;jf.show();&lt;br /&gt;}&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6030332022157572596-3089316259413630776?l=javalearningpoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javalearningpoint.blogspot.com/feeds/3089316259413630776/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6030332022157572596&amp;postID=3089316259413630776' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/3089316259413630776'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/3089316259413630776'/><link rel='alternate' type='text/html' href='http://javalearningpoint.blogspot.com/2007/09/delete-data.html' title='DELETE DATA'/><author><name>ASP</name><uri>http://www.blogger.com/profile/17640911732814769558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6030332022157572596.post-2265002241767479480</id><published>2007-09-23T22:03:00.001-07:00</published><updated>2007-09-23T22:03:59.905-07:00</updated><title type='text'>ADD RECORD</title><content type='html'>&lt;span style="font-weight: bold;"&gt;/*PROGRAME  TO ENTER NEW INFORMATION*/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;import java.awt.*;&lt;br /&gt;import java.awt.event.*;&lt;br /&gt;import java.sql.*;&lt;br /&gt;import javax.swing.*;&lt;br /&gt;class Add&lt;br /&gt;{&lt;br /&gt;public Add() throws Exception&lt;br /&gt;{&lt;br /&gt;final TextField tf1,tf2,tf3,tf4,tf5;&lt;br /&gt;Label l1,l2,l3,l4,l5,l6;&lt;br /&gt;Button b1,b2,b3;&lt;br /&gt;final JFrame f;&lt;br /&gt;f= new JFrame("ADDRESS BOOK");&lt;br /&gt;f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;br /&gt;f.setSize(600,500);&lt;br /&gt;f.getContentPane().setLayout(null);&lt;br /&gt;Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");&lt;br /&gt;final Connection con =DriverManager.getConnection("jdbc:odbc:student");&lt;br /&gt;Font f1 = new Font("sansserif",Font.BOLD,24);&lt;br /&gt;l6 = new Label("ADDRESS BOOK");&lt;br /&gt;l6.setBounds(200,10,800,40);&lt;br /&gt;l6.setFont(f1);&lt;br /&gt;f.getContentPane().add(l6);&lt;br /&gt;l1= new Label("NAME      :");&lt;br /&gt;l1.setBounds(150,100,100,30);&lt;br /&gt;f.getContentPane().add(l1);&lt;br /&gt;tf1 = new TextField();&lt;br /&gt;tf1.setBounds( 250,100,200,30);&lt;br /&gt;f.getContentPane().add(tf1);&lt;br /&gt;l2= new Label("PHONE NO. :");&lt;br /&gt;l2.setBounds(150,150,100,30);&lt;br /&gt;f.getContentPane().add(l2);&lt;br /&gt;tf2 = new TextField();&lt;br /&gt;tf2.setBounds( 250,150,200,30);&lt;br /&gt;f.getContentPane().add(tf2);&lt;br /&gt;l3= new Label("ADDRESS   :");&lt;br /&gt;l3.setBounds(150,200,100,30);&lt;br /&gt;f.getContentPane().add(l3);&lt;br /&gt;tf3 = new TextField();&lt;br /&gt;tf3.setBounds( 250,200,200,30);&lt;br /&gt;f.getContentPane().add(tf3);&lt;br /&gt;l4= new Label("EMAIL Id  :");&lt;br /&gt;l4.setBounds(150,250,100,30);&lt;br /&gt;f.getContentPane().add(l4);&lt;br /&gt;tf4 = new TextField();&lt;br /&gt;tf4.setBounds( 250,250,200,30);&lt;br /&gt;f.getContentPane().add(tf4);&lt;br /&gt;l5= new Label("BIRTH DATE:");&lt;br /&gt;l5.setBounds(150,300,100,30);&lt;br /&gt;f.getContentPane().add(l5);&lt;br /&gt;tf5 = new TextField();&lt;br /&gt;tf5.setBounds( 250,300,200,30);&lt;br /&gt;f.getContentPane().add(tf5);&lt;br /&gt;b1 = new Button("ENTER");&lt;br /&gt;b1.setBounds(150,350,80,30);&lt;br /&gt;b1.addActionListener( new ActionListener()&lt;br /&gt;{&lt;br /&gt;public void actionPerformed(ActionEvent e)&lt;br /&gt;{&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;String s1,s2,s3,s4,s5;&lt;br /&gt;s1 = tf1.getText();&lt;br /&gt;s2 = tf2.getText();&lt;br /&gt;s3 = tf3.getText();&lt;br /&gt;s4 = tf4.getText();&lt;br /&gt;s5 = tf5.getText();&lt;br /&gt;PreparedStatement ps = con.prepareStatement("insert into addressb values(?,?,?,?,?)");&lt;br /&gt;ps.setString(1,s1);&lt;br /&gt;ps.setString(2,s2);&lt;br /&gt;ps.setString(3,s3);&lt;br /&gt;ps.setString(4,s4);&lt;br /&gt;ps.setString(5,s5);&lt;br /&gt;int i = ps.executeUpdate();&lt;br /&gt;System.out.println("Row Updated:"+i);&lt;br /&gt;tf1.setText("");&lt;br /&gt;tf2.setText("");&lt;br /&gt;tf3.setText("");&lt;br /&gt;tf4.setText("");&lt;br /&gt;tf5.setText("");&lt;br /&gt;}&lt;br /&gt;catch(Exception e1){System.out.println("ERROR:"+e1);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;f.getContentPane().add(b1);&lt;br /&gt;b2 = new Button("SEARCH");&lt;br /&gt;b2.setBounds(260,350,80,30);&lt;br /&gt;b2.addActionListener(new ActionListener()&lt;br /&gt;{&lt;br /&gt;public void actionPerformed(ActionEvent e2)&lt;br /&gt;{&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;Search b= new Search();&lt;br /&gt;}&lt;br /&gt;catch(Exception e3){}&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;f.getContentPane().add(b2);&lt;br /&gt;b3 = new Button("EXIT");&lt;br /&gt;b3.setBounds(370,350,80,30);&lt;br /&gt;b3.addActionListener(new ActionListener()&lt;br /&gt;{&lt;br /&gt;public void actionPerformed(ActionEvent e2)&lt;br /&gt;{&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;System.exit(0);&lt;br /&gt;}&lt;br /&gt;catch(Exception e3)&lt;br /&gt;{}&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;f.getContentPane().add(b3);&lt;br /&gt;f.show();&lt;br /&gt;}&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6030332022157572596-2265002241767479480?l=javalearningpoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javalearningpoint.blogspot.com/feeds/2265002241767479480/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6030332022157572596&amp;postID=2265002241767479480' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/2265002241767479480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/2265002241767479480'/><link rel='alternate' type='text/html' href='http://javalearningpoint.blogspot.com/2007/09/add-record.html' title='ADD RECORD'/><author><name>ASP</name><uri>http://www.blogger.com/profile/17640911732814769558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6030332022157572596.post-7037456429698184075</id><published>2007-09-23T22:01:00.002-07:00</published><updated>2007-09-23T22:02:27.828-07:00</updated><title type='text'>DATA MODIFICATION</title><content type='html'>&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;/*PROGRAME SHOWING ADD , DELETE , SEARCH AND BUTTONS*/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;import java.awt.*;&lt;br /&gt;import java.awt.event.*;&lt;br /&gt;import javax.swing.*;&lt;br /&gt;public class start&lt;br /&gt;{&lt;br /&gt;public start() throws Exception&lt;br /&gt;{&lt;br /&gt;Button b1,b2,b3;&lt;br /&gt;JFrame jf;&lt;br /&gt;jf=new JFrame("START");&lt;br /&gt;jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;br /&gt;jf.setSize(500,500);&lt;br /&gt;jf.getContentPane().setLayout(null);&lt;br /&gt;Font f1 = new Font("sansserif",Font.BOLD,24);&lt;br /&gt;Label l3 = new Label("ADDRESS BOOK");&lt;br /&gt;l3.setBounds(150,10,800,40);&lt;br /&gt;l3.setFont(f1);&lt;br /&gt;jf.getContentPane().add(l3);&lt;br /&gt;b1 = new Button("ADD");&lt;br /&gt;b1.setBounds(200,150,100,40);&lt;br /&gt;b1.addActionListener(new ActionListener()&lt;br /&gt;{&lt;br /&gt;public void actionPerformed(ActionEvent e)&lt;br /&gt;{&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;Add a = new Add();&lt;br /&gt;}&lt;br /&gt;catch(Exception e2){}&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;b2 = new Button("SEARCH");&lt;br /&gt;b2.setBounds(200,100,100,40);&lt;br /&gt;b2.addActionListener(new ActionListener()&lt;br /&gt;{&lt;br /&gt;public void actionPerformed(ActionEvent e1)&lt;br /&gt;{&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;Search b = new Search();&lt;br /&gt;}&lt;br /&gt;catch(Exception e3)&lt;br /&gt;{}&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;b3 = new Button("DELETE");&lt;br /&gt;b3.setBounds(200,200,100,40);&lt;br /&gt;b3.addActionListener(new ActionListener()&lt;br /&gt;{&lt;br /&gt;public void actionPerformed(ActionEvent e2)&lt;br /&gt;{&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;Delete c = new Delete();&lt;br /&gt;}&lt;br /&gt;catch(Exception e4)&lt;br /&gt;{}&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;jf.getContentPane().add(b1);&lt;br /&gt;jf.getContentPane().add(b2);&lt;br /&gt;jf.getContentPane().add(b3);&lt;br /&gt;jf.show();&lt;br /&gt;}&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6030332022157572596-7037456429698184075?l=javalearningpoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javalearningpoint.blogspot.com/feeds/7037456429698184075/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6030332022157572596&amp;postID=7037456429698184075' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/7037456429698184075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/7037456429698184075'/><link rel='alternate' type='text/html' href='http://javalearningpoint.blogspot.com/2007/09/data-modification.html' title='DATA MODIFICATION'/><author><name>ASP</name><uri>http://www.blogger.com/profile/17640911732814769558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6030332022157572596.post-2963980581483532790</id><published>2007-09-23T22:01:00.001-07:00</published><updated>2007-09-23T22:03:08.220-07:00</updated><title type='text'>LOGON</title><content type='html'>&lt;span style="font-weight: bold;"&gt;/*SECOND PROGRAME  SHOWS LOGON PAGE*/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;import java.awt.*;&lt;br /&gt;import java.awt.event.*;&lt;br /&gt;import javax.swing.*;&lt;br /&gt;import java.sql.*;&lt;br /&gt;public class loginb&lt;br /&gt;{&lt;br /&gt;public loginb()&lt;br /&gt;{&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;final TextField tf1,tf2;&lt;br /&gt;Label l1,l2,l3;&lt;br /&gt;Button b1;&lt;br /&gt;final JFrame f = new JFrame("ADDRESS BOOK");&lt;br /&gt;f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);&lt;br /&gt;f.setSize(500,500);&lt;br /&gt;f.getContentPane().setLayout(null);&lt;br /&gt;Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");&lt;br /&gt;Final Connection con =DriverManager.getConnection("jdbc:odbc:student");&lt;br /&gt;final Statement st = con.createStatement();&lt;br /&gt;Font f1 = new Font("sansserif",Font.BOLD,24);&lt;br /&gt;l3 = new Label("ADDRESS BOOK");&lt;br /&gt;l3.setBounds(150,10,800,40);&lt;br /&gt;l3.setFont(f1);&lt;br /&gt;f.getContentPane().add(l3);&lt;br /&gt;l1= new Label("USER NAME :");&lt;br /&gt;l1.setBounds(100,200,100,30);&lt;br /&gt;f.getContentPane().add(l1);&lt;br /&gt;tf1 = new TextField();&lt;br /&gt;tf1.setBounds(200,200,100,30);&lt;br /&gt;f.getContentPane().add(tf1);&lt;br /&gt;l2= new Label("PASSWORD :");&lt;br /&gt;l2.setBounds(100,250,100,30);&lt;br /&gt;f.getContentPane().add(l2);&lt;br /&gt;tf2 = new TextField();&lt;br /&gt;tf2.setEchoChar('*');&lt;br /&gt;tf2.setBounds(200,250,100,30);&lt;br /&gt;f.getContentPane().add(tf2);&lt;br /&gt;b1 = new Button("LOGIN");&lt;br /&gt;b1.setBounds(200,300,100,30);&lt;br /&gt;f.getContentPane().add(b1);&lt;br /&gt;b1.addActionListener( new ActionListener()&lt;br /&gt;{&lt;br /&gt;public void actionPerformed(ActionEvent e)&lt;br /&gt;{&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;String s1 = tf1.getText();&lt;br /&gt;String s2 = tf2.getText();&lt;br /&gt;System.out.println("got data ");&lt;br /&gt;ResultSet rs = st.executeQuery("Select * From login");&lt;br /&gt;System.out.println("table select");&lt;br /&gt;while(rs.next())&lt;br /&gt;{&lt;br /&gt;String s3= rs.getString(1);&lt;br /&gt;String s4=rs.getString(2);&lt;br /&gt;System.out.println("data entered"+s1+" "+s2);&lt;br /&gt;System.out.println("inside while"+s3+" "+s4);&lt;br /&gt;if(s3.equals(s1) &amp;amp;&amp;amp; s4.equals(s2))&lt;br /&gt;{&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;f.hide();&lt;br /&gt;start s = new start();&lt;br /&gt;}&lt;br /&gt;catch(Exception e3)&lt;br /&gt;{}&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;tf1.setText("");&lt;br /&gt;tf2.setText("");&lt;br /&gt;}&lt;br /&gt;catch(Exception e1){System.out.println("ERROR 1"+e1);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;});&lt;br /&gt;f.show();&lt;br /&gt;}&lt;br /&gt;catch(Exception e2){System.out.println("ERROR 2"+e2);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6030332022157572596-2963980581483532790?l=javalearningpoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javalearningpoint.blogspot.com/feeds/2963980581483532790/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6030332022157572596&amp;postID=2963980581483532790' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/2963980581483532790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/2963980581483532790'/><link rel='alternate' type='text/html' href='http://javalearningpoint.blogspot.com/2007/09/logon.html' title='LOGON'/><author><name>ASP</name><uri>http://www.blogger.com/profile/17640911732814769558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6030332022157572596.post-3290616138203807039</id><published>2007-09-23T21:59:00.000-07:00</published><updated>2007-09-23T22:02:47.234-07:00</updated><title type='text'>MAIN CLASS</title><content type='html'>&lt;span style="font-weight: bold;"&gt;/*FIRST PROGRAME WITH MAIN CLASS*/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;import java.awt.*;&lt;br /&gt;import java.awt.event.*;&lt;br /&gt;class first extends Frame implements ActionListener&lt;br /&gt;{&lt;br /&gt;Button b;&lt;br /&gt;Toolkit t;&lt;br /&gt;Image i,i1,i2;&lt;br /&gt;Label a,a1,a2;&lt;br /&gt;public first()&lt;br /&gt;{&lt;br /&gt;Color col=new Color(100,200,200);&lt;br /&gt;setBackground(col);&lt;br /&gt;a=new Label("ADDRESS BOOK");&lt;br /&gt;a1=new Label("(DEVELOPED BY)");&lt;br /&gt;a2=new Label("JAGJEET SINGH     RAJINDER PAL SINGH      TEJINDER SINGH");&lt;br /&gt;b=new Button("CLICK TO PROCEED");&lt;br /&gt;t=Toolkit.getDefaultToolkit();&lt;br /&gt;i=t.getImage("f:/jaggi/1.jpg");&lt;br /&gt;i1=t.getImage("f:/jaggi/2.jpg");&lt;br /&gt;i2=t.getImage("f:/jaggi/3.jpg");&lt;br /&gt;add(a);&lt;br /&gt;add(a1);&lt;br /&gt;add(a2);&lt;br /&gt;add(b);&lt;br /&gt;b.addActionListener(this);&lt;br /&gt;}&lt;br /&gt;public void actionPerformed(ActionEvent e)&lt;br /&gt;{&lt;br /&gt;loginb b=new loginb();&lt;br /&gt;}&lt;br /&gt;public void paint(Graphics g)&lt;br /&gt;{&lt;br /&gt;a.setBounds(280,40,400,50);&lt;br /&gt;a1.setBounds(280,80,700,70);&lt;br /&gt;a2.setBounds(60,150,990,50);&lt;br /&gt;b.setBounds(230,530,350,50);&lt;br /&gt;Font f=new Font("Arial",Font.ITALIC,30);&lt;br /&gt;a.setFont(f);&lt;br /&gt;a1.setFont(f);&lt;br /&gt;Font h=new Font("Arial",Font.ITALIC,20);&lt;br /&gt;a2.setFont(h);&lt;br /&gt;g.drawImage(i,10,200,this);&lt;br /&gt;g.drawImage(i1,290,200,this);&lt;br /&gt;g.drawImage(i2,560,200,this);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;class f&lt;br /&gt;{&lt;br /&gt;public static void main(String ap[])&lt;br /&gt;{&lt;br /&gt;first d=new first();&lt;br /&gt;d.setSize(800,600);&lt;br /&gt;d.setVisible(true);&lt;br /&gt;}&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6030332022157572596-3290616138203807039?l=javalearningpoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javalearningpoint.blogspot.com/feeds/3290616138203807039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6030332022157572596&amp;postID=3290616138203807039' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/3290616138203807039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/3290616138203807039'/><link rel='alternate' type='text/html' href='http://javalearningpoint.blogspot.com/2007/09/main-class.html' title='MAIN CLASS'/><author><name>ASP</name><uri>http://www.blogger.com/profile/17640911732814769558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6030332022157572596.post-5494731892348306540</id><published>2007-09-23T21:52:00.002-07:00</published><updated>2007-09-23T21:54:00.816-07:00</updated><title type='text'>Systems Requirements</title><content type='html'>SYSTEMS REQUIREMENTS&lt;br /&gt;&lt;br /&gt;The project Students records management system has been prepared by using the following versions of software and hardware .Hence to use and modify the package at any other installation the hardware and software requirement would be as follows:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;COMPUTER HARDWARE&lt;br /&gt;REQUIREMENTS&lt;br /&gt;&lt;br /&gt;1. COMPUTER    PC/AT&lt;br /&gt;2. MICROPROCESSOR  80486 D*Z /100MHZ&lt;br /&gt;3. CD ROM    RW&lt;br /&gt;4. RAM     128MB&lt;br /&gt;5. KEYBOARD    105KEYS&lt;br /&gt;6. V.D.U     LG 14” MONOCHROME”&lt;br /&gt;7. PRINTER    L &amp; G&lt;br /&gt;8. KEYBOARD                                  132COLUMNS,LASER&lt;br /&gt;9. MOUSE     OPTICAL&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;COMPUTER SOFTWARE&lt;br /&gt;REQUIREMENTS&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1.    OPERATING SYSTEM:             WINDOWS 98/NT, XP&lt;br /&gt;2.    WORD PROCESSOR:     MS -WORD&lt;br /&gt;3.    FRONT END :      JAVA&lt;br /&gt;4.    BACK END :       MS-ACCESS&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6030332022157572596-5494731892348306540?l=javalearningpoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javalearningpoint.blogspot.com/feeds/5494731892348306540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6030332022157572596&amp;postID=5494731892348306540' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/5494731892348306540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/5494731892348306540'/><link rel='alternate' type='text/html' href='http://javalearningpoint.blogspot.com/2007/09/systems-requirements.html' title='Systems Requirements'/><author><name>ASP</name><uri>http://www.blogger.com/profile/17640911732814769558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6030332022157572596.post-2830306384352603718</id><published>2007-09-23T21:51:00.000-07:00</published><updated>2007-09-23T21:54:46.382-07:00</updated><title type='text'>Preface</title><content type='html'>&lt;div style="text-align: justify;"&gt;This PROJECT REPORT is based on the work and activities performed for successful completion of the major project. The report gives the comprehensive study of the project.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="text-align: center;"&gt;&lt;span style="font-weight: bold;"&gt;"STUDENT’S ADDRESS BOOK"&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;The main aim of the project is to provide general knowledge and enable the student to be aware of the practical aspects of the studies carried out during the degree. We did this work with the hope that this will help the reader in understanding the basic concepts of DATABASE in Java. The precious knowledge gained during the development this project will be advantageous to us in our future and enhance our knowledge.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6030332022157572596-2830306384352603718?l=javalearningpoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javalearningpoint.blogspot.com/feeds/2830306384352603718/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6030332022157572596&amp;postID=2830306384352603718' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/2830306384352603718'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/2830306384352603718'/><link rel='alternate' type='text/html' href='http://javalearningpoint.blogspot.com/2007/09/this-project-report-is-based-on-work.html' title='Preface'/><author><name>ASP</name><uri>http://www.blogger.com/profile/17640911732814769558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6030332022157572596.post-6478172808214136031</id><published>2007-09-23T21:50:00.001-07:00</published><updated>2007-09-23T21:50:21.781-07:00</updated><title type='text'>Certificate</title><content type='html'>&lt;div style="text-align: justify;"&gt;This is to certify that  the work presented in the project report entitled “STUDENT’S ADDRESS BOOK” submittd by Mr. Jagjeet Singh &amp;amp; Mr. Rajinder Pal Singh &amp;amp; Tejinder Singh in partial fulfillment of requirements for the award of Post Graduate degree of Master of Science in Information Technology of Vaishnoo Maa Computers, Patiala, is an authentic record of students own work carried out under my supervision and guidance. The matter embodied in report has not been submitted anywhere for award of any other degree.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6030332022157572596-6478172808214136031?l=javalearningpoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javalearningpoint.blogspot.com/feeds/6478172808214136031/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6030332022157572596&amp;postID=6478172808214136031' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/6478172808214136031'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/6478172808214136031'/><link rel='alternate' type='text/html' href='http://javalearningpoint.blogspot.com/2007/09/certificate.html' title='Certificate'/><author><name>ASP</name><uri>http://www.blogger.com/profile/17640911732814769558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6030332022157572596.post-1622048697163486997</id><published>2007-09-23T21:46:00.000-07:00</published><updated>2007-09-23T21:49:47.612-07:00</updated><title type='text'>Acknowledgement</title><content type='html'>&lt;div style="text-align: justify;"&gt;Words fail me to express my deep sense of gratitude and indebtedness to Mr.Rajesh Khanna (Lecturer, Vaishnoo Maa Computers, Patiala) for his mature, able and invaluable guidance, his all out help, painstaking efforts  and deep insight into the problem and thus improving the quality of this work at all stages, for his persistent encouragement that helped me to present this report in the present form.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;I am also thankful to my colleagues Mr. Gurpal Singh and Vikram Gupta for their continuous encouragement during the study.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="text-align: justify;"&gt;My special thanks are due to Mr. Rajesh Khanna(Lecturer, Vaishnoo Maa Computer, Patiala) who helped me directly or indirectly in the various stages of this study.&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6030332022157572596-1622048697163486997?l=javalearningpoint.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://javalearningpoint.blogspot.com/feeds/1622048697163486997/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6030332022157572596&amp;postID=1622048697163486997' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/1622048697163486997'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6030332022157572596/posts/default/1622048697163486997'/><link rel='alternate' type='text/html' href='http://javalearningpoint.blogspot.com/2007/09/acknowledgement.html' title='Acknowledgement'/><author><name>ASP</name><uri>http://www.blogger.com/profile/17640911732814769558</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
