Latest java projects

Discussion in 'Project Ideas & Seminar Topics' started by madhumurundi, Dec 3, 2009.

    madhumurundi Certified CEan

    Message Count:
    310
    Engineering Discipline:
    Computer Science
      1. ATM_Database_System
      2. A_Civilisation_Game
      3. A_Pong_Game_System
      4. A_faculty_book_system
      5. Advanced_Payroll_System
      6. AirStrike_System
      7. Airline_Reservation_System
      8. Airways_reservation_system
      9. Asteroids_java_applet
      10. Atm_simulation_System
      11. Bank_Application_System
      12. Bank_Software_with_ATM
      13. Banker_Database_System
      14. Basic_Library_System
      15. Beat_it_Game
      16. Belle_Boutique_POS_System
      17. Blackjack_Applet
      18. Blogging_Application
      19. Bluetooth_multiplayer_game
      20. Budget_Controlling_System
      21. BugTracking_system
      22. Bus_Scheduling_and_Booking_System
      23. CASINO_GAME
      24. Car_Sales_System
      25. Chess_Game
      26. Classic_Road_Fighter
      27. Classic_drugwars_game
      28. Client_Server_application
      29. Coin_Game
      30. CollegeManagementSysyetm
      31. College_Enrollment_System
      32. College_Enrollment_System2
      33. College_Library_Record_Application
      34. Complete_Banking_System
      35. Complete_Mailing_System
      36. Concentration_Game
      37. Concentration_System
      38. Country_Guessing_Game
      39. Credit_Card_Approval_System
      40. Cricket_Game_in_Java
      41. Dice_Application_System
      42. Discover_The_Word
      43. Drag_Drop_Board_Game_Template
      44. Dragon_War
      45. EMail_System_Client_Server
      46. Easy_Pong_Game
      47. Eater_System
      48. Ecare_System
      49. Email_Program_system
      50. Employee_Information_and_Payroll_System
      51. Employee_Tracking_System
      52. Evaluation_System
      53. Falcon_Fighter_Java_game
      54. Fashion_Model_Management_System
      55. Flight_Reservation_System
      56. Fun_Game_JAVA
      57. Funny_Horoscope_Teller
      58. Furniture_System
      59. Graphical_Library_System
      60. Graphical_Payroll_System
      61. Hosptal_Management_System
      62. ISAP_System
      63. IntranetChatting
      64. Inventory_System
      65. JavaExamSystem
      66. Library_Application_System
      67. Library_Information_System
      68. Library_Information_System2
      69. Library_Management_System
      70. Library_Members_Info_System
      71. Library_System
      72. MIS_coding_Nokia_soft
      73. Medical_Diagnostic_System
      74. Mobile_Phone_Anti_Virus
      75. Network_Banking_System
      76. News_System
      77. ONLINE_YEARBOOK_with_SMS
      78. ORKUT_USING_JAVA
      79. One_player_chess_game
      80. Online_Address_Book
      81. Online_Remote_Server
      82. Online_databse_System
      83. PROJECT_PLANNING_MANAGEMENT
      84. Personnel_System
      85. Pharmacy_ management_system
      86. Phone_Book_System
      87. Photo_Album_System
      88. Picture_Search_Machine
      89. Placement_Office_Automation
      90. Practical_Aircraft_Position
      91. Puyo_game
      92. RMI_Card_Game
      93. RPC_Card_Game
      94. RPG_Battle_Demo
      95. Recruitment_Officer_System
      96. Result_Intemation_System
      97. Scheduler_System
      98. Shopping_Cart_Example
      99. Short_Course_Management_System
      100. Simple_Library_System
      101. Simple_Pharmacy_Management_System
      102. Student_Counselling_Management_System
      103. Student_Database_Libary_System
      104. Student_Information_System
      105. Student_Record_and_Information_System
      106. Student_Registration_System
      107. Telephone_Billing_System
      108. Turn_Based_Network_Game
      109. War_card_game
      110. Who_wants_to_be_a_millionaire
      111. advertisingagency
      112. airlines
      113. chess_two_player
      114. course_registration_system
      115. doctors
      116. human_resource_management_system
      117. internetbanking
      118. mexican_game
      119. online_cources
      120. online_tesing_site
      121. onlineexam
      122. onlinelibrary
      123. onlineshoping
      124. parking_system
      125. powerpointSliding
      126. shoot_the_target_game
      127. slidingwindow

    hits224 Certified CEan

    Message Count:
    2
    hiii madhumurundi,
    can you give some latest projects in java on network security, [acket inspection or sniffing .... any thing related to networking in java..
    i need some help in selecting my btech final year project(discipline CSE).


    thanks in advance....:cean:

    hits224 Certified CEan

    Message Count:
    2
    hiii madhumurundi,
    can you give some latest projects in java on network security, packet inspection or sniffing .... any thing related to networking in java..
    i need some help in selecting my btech final year project(discipline CSE).


    thanks in advance....

    madhumurundi Certified CEan

    Message Count:
    310
    Engineering Discipline:
    Computer Science
    hi,
    Wireless Intrusion Detection system and New Attack model is the Good topic for Network Security Project
    for more Info click here
    CLICK

    madhumurundi Certified CEan

    Message Count:
    310
    Engineering Discipline:
    Computer Science
    let us Start with our First project ..
    1. ATM DATABASE SYSTEM

    code for this project as follows:

    FILE NAME: mainmenu.java

    import java.awt.event.* ; //
    import javax.swing.* ; // PACKAGES
    import java.awt.* ; //
    import java.sql.*; //
    //-----------------THE MAIN MENU---------------------
    public class MainMenu extends JFrame implements ActionListener {
    private JButton but1, but2, but3, but4, but5, but6,but7,but8,but9 ;
    private JLabel labb,label,label2,label3,label4,label4a,label5,label6,label6a,label7;
    private JTextArea textarea;
    private JPasswordField pwordfield;
    private int pw,intt;
    static String url = "jdbc:eek:dbc:abc";
    private String str1;
    Container c;
    //--Constructor----
    public MainMenu() {
    super("ATM");
    }
    //----Method Main(The main Method)-----
    public void Main(){
    c = getContentPane() ;
    c.setLayout(null) ;


    but1 = new JButton(">>>") ;
    but1.setPreferredSize( new Dimension(100,30) ) ;
    but1.setSize( but1.getPreferredSize() ) ;
    but1.setLocation(50,50) ;
    but1.addActionListener(this) ;
    c.add(but1) ;

    but2 = new JButton(">>>") ;
    but2.setPreferredSize( new Dimension(100,30) ) ;
    but2.setSize( but2.getPreferredSize() ) ;
    but2.setLocation(50,100) ;
    but2.addActionListener(this) ;
    c.add(but2) ;

    but3=new JButton(">>>");
    but3.setPreferredSize(new Dimension(100,30));
    but3.setSize(but3.getPreferredSize());
    but3.addActionListener(this);
    but3.setLocation(50,150);
    c.add(but3);

    but4 = new JButton("<<<");
    but4.setPreferredSize(new Dimension(100,30));
    but4.setSize(but4.getPreferredSize());
    but4.addActionListener(this);
    but4.setLocation(375,50);
    c.add(but4);

    but5 = new JButton("<<<");
    but5.setPreferredSize(new Dimension(100,30));
    but5.setSize(but5.getPreferredSize());
    but5.setLocation(375,100);
    but5.addActionListener(this);
    c.add(but5);

    but6 = new JButton("<<<");
    but6.setPreferredSize(new Dimension(100,30));
    but6.setSize(but6.getPreferredSize());
    but6.setLocation(375,150);
    but6.addActionListener(this);
    but6.addActionListener(new ActionListener(){
    //----Creating the odbc Driver for but6-----
    public void actionPerformed(ActionEvent event){
    if(event.getSource()==but6){
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    }catch(ClassNotFoundException a){
    JOptionPane.showMessageDialog(
    null, url,"CLASS NOT FOUND EXCEPTION !!!",JOptionPane.INFORMATION_MESSAGE);
    }
    }
    }


    });
    c.add(but6);

    but7 = new JButton("CANCEL");
    but7.setPreferredSize(new Dimension(100,30));
    but7.setSize(but7.getPreferredSize());
    but7.setLocation(200,212);
    but7.addActionListener(this);
    c.add(but7);

    label=new JLabel("CASH");
    label.setPreferredSize(new Dimension(75,50));
    label.setSize(label.getPreferredSize());
    label.setLocation(160,40);
    label.setToolTipText("to draw money,please click on the left button");
    c.add(label);

    label2 = new JLabel(" INFORMATION");
    label2.setPreferredSize(new Dimension(85,50));
    label2.setSize(label2.getPreferredSize());
    label2.setLocation(280,40);
    label2.setToolTipText("For information,please click on the left button");
    c.add(label2);

    label3 = new JLabel("TRANSFER");
    label3.setPreferredSize(new Dimension(85,50));
    label3.setSize(label3.getPreferredSize());
    label3.setLocation(160,90);
    label3.setToolTipText("for referring money,click on the right button");
    c.add(label3);

    label4 = new JLabel("CARD ");
    label4.setPreferredSize(new Dimension(85,50));
    label4.setSize(label4.getPreferredSize());
    label4.setLocation(160,132);
    label4.setToolTipText(
    "For password,dept operations,please click on the left button");
    c.add(label4);

    label4a = new JLabel("TRANSACTIONS");
    label4a.setPreferredSize(new Dimension(100,50));
    label4a.setSize(label4a.getPreferredSize());
    label4a.setLocation(160,148);
    c.add(label4a);

    label5 = new JLabel(" INVESTMENT");
    label5.setPreferredSize(new Dimension(95,50));
    label5.setSize(label5.getPreferredSize());
    label5.setLocation(280,90);
    label5.setToolTipText(
    "To buy fund,bond etc.,please click on the right button");
    c.add(label5);

    label6 = new JLabel(" STANDARD");
    label6.setPreferredSize(new Dimension(75,50));
    label6.setSize(label6.getPreferredSize());
    label6.setLocation(280,132);
    label6.setToolTipText("To get 10$ rapidly,please click");
    c.add(label6);

    label6a = new JLabel(" CASH");
    label6a.setPreferredSize(new Dimension(75,50));
    label6a.setSize(label6a.getPreferredSize());
    label6a.setLocation(280,147);
    label6a.setToolTipText("To get 10$ rapidly please click");
    c.add(label6a);

    setSize(500,410) ;
    show();
    }
    //------actionPerformed method for ActionListener-----
    public void actionPerformed( ActionEvent event ){
    if( event.getSource()==but7 )
    System.exit(0) ;
    else if( event.getSource() == but1 ){
    new Cash();this.hide();}
    else if(event.getSource()== but2 ){
    new Transfer();this.hide();}
    else if(event.getSource()==but3){
    new CardTransactions();this.hide();}
    else if(event.getSource()==but4 ){
    new Information();this.hide();}
    else if(event.getSource()==but6){
    new StandardCash();this.hide();}
    else if(event.getSource()==but9)
    System.exit(0);
    else if(event.getSource()==but8){
    //----Select operation for comparison of first password entered----
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    }catch(ClassNotFoundException a){
    JOptionPane.showMessageDialog(
    null, url,"CLASS NOT FOUND EXCEPTION !!!",
    JOptionPane.INFORMATION_MESSAGE);
    }

    try{
    String string = new String(pwordfield.getPassword());
    intt=Integer.parseInt(string);
    String run = "SELECT * FROM abc " +"WHERE password = " +intt;
    System.out.println(run + "SQL string executed");
    Connection connection = DriverManager.getConnection(url,"","");
    Statement stmt = connection.createStatement();
    ResultSet result=stmt.executeQuery(run);
    while(result.next()){
    String name = result.getString(1);
    String surname = result.getString(2);
    int amount = result.getInt(3);
    int password = result.getInt(4);
    pw=password;

    }
    connection.close();

    }catch(SQLException a){
    JOptionPane.showMessageDialog(
    null,url,"SQL EXCEPTION AT SELECT OPERATION",
    JOptionPane.INFORMATION_MESSAGE);
    } this.hide();
    //---Comparison---if there is not equivalent MainMenu does not appear-----
    if(pw==intt){MainMenu s=new MainMenu();s.Main();}
    else if(pw!=intt){
    JOptionPane.showMessageDialog(
    null,"Invalid Password,Please try again",
    "EXCEPTION",JOptionPane.ERROR_MESSAGE);
    MainMenu s=new MainMenu();s.Password();
    }
    }

    }//-----method main---Executes the password asking--------
    public static void main(String args[]){
    MainMenu s=new MainMenu();
    s.Password();
    }//-----password method----------
    public void Password(){
    c = getContentPane() ;
    c.setLayout(new FlowLayout()) ;
    c.setBackground(Color.lightGray);

    pwordfield=new JPasswordField(17);
    c.add(pwordfield);

    but8=new JButton("OK");
    but8.setPreferredSize(new Dimension(90,25));
    but8.setSize(but8.getPreferredSize());
    but8.addActionListener(this);
    c.add(but8);

    but9=new JButton("CANCEL");
    but9.setPreferredSize(new Dimension(90,25));
    but9.setSize(but9.getPreferredSize());
    but9.addActionListener(this);
    c.add(but9);
    //-----Informations about the program-----
    String sttr=" W E L C O M E!\n"+
    " Please write your password:\n"+
    "----------------------------------------------\n"+
    " This product is a\n"+
    " guarenteed trade mark of MADHU M P Projects Source\n"+
    "
    "----------------------------------------------\n"+
    " Producer: MADHU M P";

    //-----set up textarea----------------
    textarea = new JTextArea(sttr,10,17);
    c.add(new JScrollPane(textarea));
    textarea.setBackground(Color.lightGray);
    textarea.setEditable(false);
    setSize(250,300) ;
    show();
    }
    }



    madhumurundi Certified CEan

    Message Count:
    310
    Engineering Discipline:
    Computer Science
    contd....

    File NAME: DB.java



    import java.awt.*; //
    import java.awt.event.*; // PACKAGES
    import javax.swing.*; //
    import java.sql.*; //

    public class DB extends JFrame implements ActionListener {
    static String url = "jdbc:eek:dbc:abc";
    private JTextField text1,text2,text3;
    private JButton but1,but2,but3,but4;
    private JLabel label1,label2,label3;
    private int Amount,Amount1,pword,int1;
    private String str1,str2,str3;
    private String run;
    Container c;
    //---Constructor---
    public DB(){
    }//---Method for getting different amount--called from class Cash--
    public void ExecutionForAnother(){

    Container c=getContentPane();
    c.setLayout(new FlowLayout());

    label2=new JLabel(" Write the money you want to get and your password:");
    c.add(label2);
    text1=new JTextField(10);
    c.add(text1);

    label1=new JLabel("<<P.WORD||AMOUNT>>");
    c.add(label1);
    text2=new JTextField(10);
    c.add(text2);

    but1=new JButton(" OK ");
    but1.addActionListener(this);
    but1.setBackground(Color.white);
    c.add(but1);

    but4=new JButton(" BACK ");
    but4.addActionListener(this);
    but4.setBackground(Color.white);
    c.add(but4);

    setSize(400,250);
    setResizable(true);
    show();
    }//----Method for getting one of the value(money) that is seen
    //---on the screen--Called from class Cash---
    public void CashScreen(){
    c=getContentPane();
    c.setLayout(new FlowLayout());

    label3 = new JLabel("PLEASE WRITE Pword & PRESS OK:");
    c.add(label3);
    text3=new JTextField(10);
    c.add(text3);

    but2 = new JButton("OK");
    but2.setPreferredSize(new Dimension(80,25));
    but2.setSize(but2.getPreferredSize());
    but2.setBackground(Color.white);
    but2.addActionListener(this);
    c.add(but2);

    but3 = new JButton("CANCEL");
    but3.setPreferredSize(new Dimension(80,25));
    but3.setSize(but3.getPreferredSize());
    but3.setBackground(Color.white);
    but3.addActionListener(this);
    c.add(but3);

    setSize(350,200);
    show();
    }//--------Method for the ActionListener---------
    public void actionPerformed(ActionEvent event){
    if(event.getSource()==but2){// for CashScreen
    str3=text3.getText();
    int int8=Integer.parseInt(str3);
    try{ //--Selection for CashScreen---
    String run = "SELECT * FROM abc " +"WHERE password=" +int8;
    System.out.println(run+"SQL Operatýon Executed..");
    Connection connection = DriverManager.getConnection(url,"","");
    Statement stmt = connection.createStatement();
    ResultSet result=stmt.executeQuery(run);
    while (result.next()){
    String name = result.getString(1);
    String surname = result.getString(2);
    int amount = result.getInt(3);
    int password = result.getInt(4);
    Amount = amount;
    }
    connection.close();
    }catch(SQLException a){
    JOptionPane.showMessageDialog(null,url,"SQL EXCEPTION AT SELECTION OPERATION",JOptionPane.INFORMATION_MESSAGE);
    }
    Amount=Amount-20; //reducing the user's money
    //---Updating the new values----
    String run1 = "UPDATE abc SET " +
    "amount='" +Amount+"' WHERE password="+int8;
    try{
    Connection connection = DriverManager.getConnection(url,"","");
    Statement stmt = connection.createStatement();
    stmt.executeUpdate(run1);
    System.out.println("Operation completed...");
    connection.close();
    }catch(SQLException a){JOptionPane.showMessageDialog(null,url,"SQL EXCEPTION AT UPDATE OPERATION",JOptionPane.INFORMATION_MESSAGE);
    }


    }//--------------------------------------------------------
    else if(event.getSource()==but4){
    this.hide();}
    else if(event.getSource()==but1){ //for another
    str2=text1.getText(); // gets password
    pword=Integer.parseInt(str2);
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    }catch(ClassNotFoundException a){
    JOptionPane.showMessageDialog(null, url,"CLASS NOT FOUND EXCEPTION !!!",JOptionPane.INFORMATION_MESSAGE);
    }
    //---Selection for ExecutionForAnother----
    try{
    String run = "SELECT * FROM abc " +"WHERE password = " +pword;
    System.out.println(run + "SQL string executed");
    Connection connection = DriverManager.getConnection(url,"","");
    Statement stmt = connection.createStatement();
    ResultSet result=stmt.executeQuery(run);
    while(result.next()){
    String name = result.getString(1);
    String surname = result.getString(2);
    int amount = result.getInt(3);
    int password = result.getInt(4);

    Amount1=amount;
    }
    connection.close();
    }catch(SQLException a){
    JOptionPane.showMessageDialog(null,url,"SQL EXCEPTION AT SELECT OPERATION",JOptionPane.INFORMATION_MESSAGE);
    }
    str1=text2.getText(); //gets the wanted money
    int1 =Integer.parseInt(str1);
    Amount1=Amount1-int1; //and subtract it from the total money
    //--Update the Amount after operations above--
    String run1 = "UPDATE abc SET " +
    "amount='" +Amount1+"' WHERE password="+pword;
    try{
    Connection connection = DriverManager.getConnection(url,"","");
    Statement stmt = connection.createStatement();
    stmt.executeUpdate(run1);
    System.out.println("Operation completed...");
    connection.close();
    }catch(SQLException a){JOptionPane.showMessageDialog(null,url,"SQL EXCEPTION AT UPDATE OPERATION",JOptionPane.INFORMATION_MESSAGE);
    }
    }
    else if(event.getSource()==but3){
    this.hide();
    }
    }//--end of method actionPerformed---

    }//--end of class.

    madhumurundi Certified CEan

    Message Count:
    310
    Engineering Discipline:
    Computer Science
    contd...
    FILE NAME: DB2.java



    import java.awt.*; //
    import java.awt.event.*; // PACKAGES
    import javax.swing.*; //
    import java.sql.*; //

    public class DB2 extends JFrame implements ActionListener{
    private JTextField text1,text2,text3,text4,text5,text6,text7;
    private JButton but1,but2,but3,but4,but5,but6,but7,button1,button2;
    private JLabel label,label1,label2,label3,label4,label5,label6;
    private String str1,str2,str3,str4,str5,str6,str7;
    private int Amount,Password,Depts,password2;
    protected JList list1,list2;
    private String depts[]={"Renting dept","Receipt dept","Credit depts",
    "Education depts","Insurance depts","Comunication depts",
    "Car depts","Home depts","Security depts.."};
    static String url = "jdbc:eek:dbc:abc";
    Container c;
    //---Constructor---
    public DB2(){
    super("Executions");
    }//--Method for changing password--called from class CardTransactions--
    public void ChangePword(){
    c=getContentPane();
    c.setLayout(null);

    but1=new JButton(" OK ");
    but1.addActionListener(this);
    but1.setPreferredSize(new Dimension(80,23));
    but1.setSize(but1.getPreferredSize());
    but1.setLocation(200,180);
    but1.setBackground(Color.white);
    c.add(but1);

    but3=new JButton("CANCEL");
    but3.addActionListener(this);
    but3.setPreferredSize(new Dimension(80,22));
    but3.setSize(but3.getPreferredSize());
    but3.setLocation(100,180);
    but3.setBackground(Color.white);
    c.add(but3);

    text1=new JTextField(10);
    text1.setPreferredSize(new Dimension(10,22));
    text1.setSize(text1.getPreferredSize());
    text1.setLocation(200,50);
    str1=text1.getText();
    c.add(text1);

    text2=new JTextField(10);
    text2.setPreferredSize(new Dimension(10,22));
    text2.setSize(text2.getPreferredSize());
    text2.setLocation(200,100);
    str2=text2.getText();
    c.add(text2);

    label1=new JLabel("Enter your OLD password:");
    label1.setPreferredSize(new Dimension(150,30));
    label1.setSize(label1.getPreferredSize());
    label1.setLocation(33,46);
    c.add(label1);

    label2=new JLabel("Enter your NEW password:");
    label2.setPreferredSize(new Dimension(160,30));
    label2.setSize(label2.getPreferredSize());
    label2.setLocation(33,96);
    c.add(label2);

    setSize(350,300);
    setResizable(true);
    show();
    }//--Method for DeptPaying--called from class CardTransactions--
    public void DeptPaying(){
    c=getContentPane();
    c.setLayout(new FlowLayout());

    list1 =new JList(depts);
    list1.setVisibleRowCount(5);
    list1.setFixedCellHeight(15);
    list1.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
    c.add(new JScrollPane(list1));

    list2 =new JList();
    list2.setVisibleRowCount(4);
    list2.setFixedCellWidth(100);
    list2.setFixedCellHeight(18);
    list2.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    c.add(new JScrollPane(list2));

    label5=new JLabel("Enter your password:");
    c.add(label5);
    text6=new JTextField(15);
    c.add(text6);

    label6=new JLabel("Your dept to pay:");
    c.add(label6);
    text7=new JTextField(15);
    c.add(text7);

    but2=new JButton(" OK ");
    but2.setBackground(Color.white);
    but2.setPreferredSize(new Dimension(100,20));
    but2.setSize(but2.getPreferredSize());
    but2.addActionListener(this);
    c.add(but2);

    but4=new JButton(" Cancel ");
    but4.addActionListener(this);
    but4.setPreferredSize(new Dimension(100,20));
    but4.setSize(but4.getPreferredSize());
    but4.setBackground(Color.white);
    c.add(but4);


    setSize(370,200);
    setVisible(true);
    }//----Method for ActionListener-------
    public void actionPerformed(ActionEvent event){

    if(event.getSource()==but1){
    //--Getting the values which will be changed--
    str1=text1.getText();
    str2=text2.getText();
    //--Updating the values of password changing--
    String run = "UPDATE abc SET " +
    "password='" +str2+"' WHERE password="+str1;
    try{
    Connection connection = DriverManager.getConnection(url,"","");
    Statement stmt = connection.createStatement();
    stmt.executeUpdate(run);
    System.out.println("Operation completed...");
    connection.close();
    }catch(SQLException a){JOptionPane.showMessageDialog(null,url,"SQL EXCEPTION AT UPDATE OPERATION",JOptionPane.INFORMATION_MESSAGE);
    }
    }
    //---Select operation for the DeptPaying method----
    else if(event.getSource()==but2){
    int int6;int int7;Depts=0;
    list2.setListData(list1.getSelectedValues());

    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    }catch(ClassNotFoundException a){
    JOptionPane.showMessageDialog(null, url,"CLASS NOT FOUND EXCEPTION !!!",JOptionPane.INFORMATION_MESSAGE);
    }

    try{
    str6=text6.getText();
    int6=Integer.parseInt(str6);
    String run = "SELECT * FROM abc " +"WHERE password = " +int6;
    System.out.println(run + "SQL string executed");
    Connection connection = DriverManager.getConnection(url,"","");
    Statement stmt = connection.createStatement();
    ResultSet result=stmt.executeQuery(run);
    while(result.next()){
    String name = result.getString(1);
    String surname = result.getString(2);
    int amount = result.getInt(3);
    int password = result.getInt(4);
    int depts =result.getInt(5);
    password2=password;
    Depts=depts;
    }
    connection.close();
    }catch(SQLException a){
    JOptionPane.showMessageDialog(null,url,"SQL EXCEPTION AT SELECT OPERATION",JOptionPane.INFORMATION_MESSAGE);
    }
    int6=password2;
    str7=text7.getText();
    int7=Integer.parseInt(str7);
    Depts=Depts-int7;
    //---Update operation for DeptPaying----
    String run4 = "UPDATE abc SET " +
    "depts='" +Depts+"' WHERE password="+int6;
    try{
    Connection connection = DriverManager.getConnection(url,"","");
    Statement stmt = connection.createStatement();
    stmt.executeUpdate(run4);
    System.out.println("Operation completed...");
    connection.close();
    }catch(SQLException a){JOptionPane.showMessageDialog(null,url,"SQL EXCEPTION AT UPDATE OPERATION",JOptionPane.INFORMATION_MESSAGE);
    }
    }
    //--------------------------------------------------------------

    else if(event.getSource()==but3){
    this.hide();}
    else if(event.getSource()==but4){
    this.hide();
    }
    else if(event.getSource()==but7){
    this.hide();}
    //----Select operation for Demonstration-------------------------
    else if(event.getSource()==but6){
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    }catch(ClassNotFoundException a){
    JOptionPane.showMessageDialog(null, url,"CLASS NOT FOUND EXCEPTION !!!",JOptionPane.INFORMATION_MESSAGE);
    }
    try{
    str5=text5.getText();
    int pword=Integer.parseInt(str5);

    String run = "SELECT * FROM abc " +"WHERE password = " +pword;
    System.out.println(run + "SQL string executed");
    Connection connection = DriverManager.getConnection(url,"","");
    Statement stmt = connection.createStatement();
    ResultSet result=stmt.executeQuery(run);
    while(result.next()){
    String name = result.getString(1);
    String surname = result.getString(2);
    String amount = result.getString(3);
    String password = result.getString(4);
    JOptionPane.showMessageDialog(null,"Your total money is: "+amount+"$");
    }
    connection.close();
    }
    catch(SQLException a){
    JOptionPane.showMessageDialog(null,url,"SQL EXCEPTION AT SELECT OPERATION",JOptionPane.INFORMATION_MESSAGE);
    }

    }//--Closing the actionPerformed method--
    }//--Method for the
    public void Back(){
    this.hide();
    MainMenu s=new MainMenu();
    s.Main();
    }
    public void Demonstration(){
    c = getContentPane();
    c.setLayout(new FlowLayout());

    label4=new JLabel("To see remainder,write your password ");
    c.add(label4);

    text5=new JTextField(10);
    c.add(text5);

    but6 = new JButton("OK");
    but6.addActionListener(this);
    c.add(but6);

    but7 = new JButton("BACK");
    but7.addActionListener(this);
    c.add(but7);

    setSize(350,200);
    setResizable(true);
    show();
    }
    }


    contd....

    FILE NAME: Information.java


    import java.awt.*; //
    import java.awt.event.*; // PACKAGES
    import javax.swing.*; //
    import java.sql.*; //
    public class Information extends JFrame implements ActionListener {
    private JButton button1,button2;
    private JLabel label1,label2;
    static String url = "jdbc:eek:dbc:abc";
    //-----Constructor------
    public Information(){
    super();
    Container container = getContentPane();
    container.setLayout(null);

    button1 = new JButton(" >>> ");
    button1.setPreferredSize(new Dimension(100,30));
    button1.setSize(button1.getPreferredSize());
    button1.setLocation(30,50);
    button1.addActionListener(this);
    container.add(button1);

    button2 = new JButton(" CANCEL ");
    button2.setPreferredSize(new Dimension(100,30));
    button2.setSize(button2.getPreferredSize());
    button2.setLocation(30,100);
    button2.addActionListener(this);
    container.add(button2);

    label1 = new JLabel("Demonstration");
    label1.setPreferredSize(new Dimension(120,30));
    label1.setSize(label1.getPreferredSize());
    label1.setLocation(150,43);
    container.add(label1);

    label2 = new JLabel("of Remainder");
    label2.setPreferredSize(new Dimension(120,30));
    label2.setSize(label2.getPreferredSize());
    label2.setLocation(150,56);
    container.add(label2);

    setSize(400,300);
    setVisible(true);
    }//------actionPerformed method for ActionListener-----
    public void actionPerformed(ActionEvent event){

    if(event.getSource()==button1){
    DB2 s=new DB2();s.Demonstration();
    }
    else if(event.getSource()==button2){
    //--Closes the present window--
    this.hide();
    //--Going to DB2 class for execution
    DB2 s=new DB2();s.Back();
    }
    }

    }
    [/COLOR]

    madhumurundi Certified CEan

    Message Count:
    310
    Engineering Discipline:
    Computer Science
    contd...
    FILE NAME: Cash.java


    import java.awt.*; //
    import java.awt.event.*; // PACKAGES
    import javax.swing.*; //
    import java.sql.*; //
    public class Cash extends JFrame implements ActionListener{
    public JButton button1,button2,button3,button4,button5,button6,cancelBut;
    private JLabel label1,label2,label3,label4,label5,label6;
    private JTextField textField;
    static String url = "jdbc:eek:dbc:abc";
    //---Constructor---
    public Cash(){
    super("Cash");
    Container container=getContentPane() ;
    container.setLayout(null);

    textField=new JTextField(10);
    button1 = new JButton(">>>");
    button1.setPreferredSize(new Dimension(100,30));
    button1.setSize(button1.getPreferredSize());
    button1.setLocation(50,50);
    button1.addActionListener(this);
    container.add(button1);

    button2 = new JButton(">>>");
    button2.setPreferredSize(new Dimension(100,30));
    button2.setSize(button2.getPreferredSize());
    button2.setLocation(50,100);
    button2.addActionListener(this);
    container.add(button2);

    button3 = new JButton(">>>");
    button3.setPreferredSize(new Dimension(100,30));
    button3.setSize(button3.getPreferredSize());
    button3.setLocation(50,150);
    button3.addActionListener(this);
    container.add(button3);

    button4 = new JButton("<<<");
    button4.setPreferredSize(new Dimension(100,30));
    button4.setSize(button4.getPreferredSize());
    button4.setLocation(375,50);
    //---makes the communication with the odbc Driver---
    button4.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent event){
    if(event.getSource()==button1){
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    }catch(ClassNotFoundException a){
    JOptionPane.showMessageDialog(null, url,"CLASS NOT FOUND EXCEPTION !!!",JOptionPane.INFORMATION_MESSAGE);
    }}DB s=new DB();s.CashScreen();}
    });
    container.add(button4);

    button5 = new JButton("<<<");
    button5.setPreferredSize(new Dimension(100,30));
    button5.setSize(button5.getPreferredSize());
    button5.setLocation(375,100);
    button5.addActionListener(this);
    container.add(button5);

    button6 = new JButton("<<<");
    button6.setPreferredSize(new Dimension(100,30));
    button6.setSize(button6.getPreferredSize());
    button6.setLocation(375,150);
    //---makes the communication with the odbc Driver---
    button6.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent event){
    if(event.getSource()==button1){
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    }catch(ClassNotFoundException a){
    JOptionPane.showMessageDialog(null, url,"CLASS NOT FOUND EXCEPTION !!!",JOptionPane.INFORMATION_MESSAGE);
    }}DB s=new DB();s.ExecutionForAnother();}
    });

    container.add(button6);

    cancelBut = new JButton("CANCEL");
    cancelBut.setPreferredSize(new Dimension(100,30));
    cancelBut.setSize(cancelBut.getPreferredSize());
    cancelBut.setLocation(375,200);
    cancelBut.addActionListener(this);
    container.add(cancelBut);

    label1=new JLabel(" 10 $");
    label1.setPreferredSize(new Dimension(75,30));
    label1.setSize(label1.getPreferredSize());
    label1.setLocation(150,50);
    container.add(label1);

    label2=new JLabel(" 20 $");
    label2.setPreferredSize(new Dimension(75,30));
    label2.setSize(label2.getPreferredSize());
    label2.setLocation(300,50);
    container.add(label2);

    label3=new JLabel(" 40 $");
    label3.setPreferredSize(new Dimension(75,30));
    label3.setSize(label3.getPreferredSize());
    label3.setLocation(150,100);
    container.add(label3);

    label4=new JLabel(" 50 $");
    label4.setPreferredSize(new Dimension(75,30));
    label4.setSize(label4.getPreferredSize());
    label4.setLocation(300,100);
    container.add(label4);

    label5=new JLabel(" 100 $");
    label5.setPreferredSize(new Dimension(75,30));
    label5.setSize(label5.getPreferredSize());
    label5.setLocation(150,150);
    container.add(label5);

    label6=new JLabel(" Another..");
    label6.setPreferredSize(new Dimension(85,30));
    label6.setSize(label6.getPreferredSize());
    label6.setLocation(300,150);
    container.add(label6);

    setSize(500,400);
    setVisible(true);

    }//---Method for Actionlistener---
    public void actionPerformed(ActionEvent event){
    if(event.getSource()==cancelBut){
    this.hide();//closes the present application
    MainMenu s=new MainMenu();s.Main();//and goes to MainMenu
    }

    }
    }



    contd..

    FILE NAME: StandardCash.java



    import java.awt.*; //
    import java.awt.event.*; // PACKAGES
    import javax.swing.*; //
    import java.sql.*; //
    public class StandardCash extends JFrame implements ActionListener {
    private JButton button1,button2;
    private JLabel label1;
    private String str1;
    private int Amount,Password;
    private JTextField text1;
    static String url = "jdbc:eek:dbc:abc";
    Container container;
    //SET UP GUI
    public StandardCash(){
    super("Standard Cash (10$)");
    Container container = getContentPane();
    container.setLayout(null);

    button1 = new JButton("OK");
    button1.setPreferredSize(new Dimension (90,30));
    button1.setSize(button1.getPreferredSize());
    button1.setLocation(50,100);
    button1.addActionListener(this);
    container.add(button1);

    text1=new JTextField(10);
    text1.setPreferredSize(new Dimension(10,22));
    text1.setSize(text1.getPreferredSize());
    text1.setLocation(50,60);
    container.add(text1);

    button2 = new JButton("CANCEL");
    button2.setPreferredSize(new Dimension (90,30));
    button2.setSize(button2.getPreferredSize());
    button2.addActionListener(this);
    button2.setLocation(150,100);

    container.add(button2);

    label1 = new JLabel("Please enter your password:");
    label1.setPreferredSize(new Dimension(250,20));
    label1.setSize(label1.getPreferredSize());
    label1.setLocation(50,40);
    container.add(label1);

    setSize(350,300);
    show();

    }//------Method for ActionListener-----------------
    public void actionPerformed(ActionEvent event){
    if(event.getSource()==button1){
    //Selecting the values for the user--------
    try{
    str1=text1.getText();
    int int1=Integer.parseInt(str1);

    String run = "SELECT * FROM abc " +"WHERE password = " +int1;
    System.out.println(run + "SQL string executed");
    Connection connection = DriverManager.getConnection(url,"","");
    Statement stmt = connection.createStatement();
    ResultSet result=stmt.executeQuery(run);
    while(result.next()){
    String name = result.getString(1);
    String surname = result.getString(2);
    int amount = result.getInt(3);
    int password = result.getInt(4);
    Password=password;
    Amount=amount-10;
    }
    connection.close();
    }
    catch(SQLException a){
    JOptionPane.showMessageDialog(
    null,url,"SQL EXCEPTION AT SELECT OPERATION",
    JOptionPane.INFORMATION_MESSAGE);
    }
    //-----Updating the Amount that is reduced up ^^----------
    String run = "UPDATE abc SET " +
    "amount='" +Amount+"' WHERE password="+Password;
    try{
    Connection connection = DriverManager.getConnection(url,"","");
    Statement stmt = connection.createStatement();
    stmt.executeUpdate(run);
    System.out.println("Operation completed...");
    connection.close();
    }catch(SQLException a){JOptionPane.showMessageDialog(
    null,url,"SQL EXCEPTION AT UPDATE OPERATION",
    JOptionPane.INFORMATION_MESSAGE);
    }
    }
    else if(event.getSource()==button2){
    this.hide();
    MainMenu s=new MainMenu();s.Main();
    }

    }
    }

    madhumurundi Certified CEan

    Message Count:
    310
    Engineering Discipline:
    Computer Science
    contd...

    FILE NAME: Transfer.java



    import java.awt.*; //
    import java.awt.event.*; //
    import javax.swing.*; // PACKAGES
    import java.sql.*; //
    import sun.jdbc.odbc.*; //

    public class Transfer extends JFrame implements ActionListener{
    private JTextField textfield1,textfield2,textfield3,textfield4,textfield5;
    private JButton OKButton,ExitButton;
    private JLabel label;
    private int int1,int2,int3,Amount,Amount1,Password;
    private String str1,str2,str3;
    static String url = "jdbc:eek:dbc:abc";
    //SET UP GUI
    public Transfer(){
    super("Money Transfer");
    Container container = getContentPane();
    container.setLayout(new FlowLayout() );

    label=new JLabel("Password of the user:");
    label.setLocation(200,50);
    container.add(label);

    textfield5 = new JTextField(15);
    container.add(textfield5);

    textfield1 = new JTextField("Password of the receiver:");
    textfield1.setEditable(false);
    container.add(textfield1);
    textfield2 = new JTextField(15);
    container.add(textfield2);

    textfield3 = new JTextField("Amount of the sent:",15);
    textfield3.setEditable(false);
    container.add(textfield3);
    textfield4 = new JTextField(15);
    container.add(textfield4);

    OKButton = new JButton("OK");
    OKButton.setPreferredSize(new Dimension(80,20));
    OKButton.setSize(OKButton.getPreferredSize());
    OKButton.addActionListener(this);
    container.add(OKButton);

    ExitButton = new JButton("Exit");
    ExitButton.setPreferredSize(new Dimension(80,20));
    ExitButton.setSize(ExitButton.getPreferredSize());
    ExitButton.addActionListener(this);
    container.add(ExitButton);

    setSize(400,150);
    setVisible(true);

    }//-------------actionPerformed----------------------------------------
    public void actionPerformed(ActionEvent event){
    if(event.getSource()==ExitButton){
    this.hide();MainMenu s=new MainMenu();s.Main();
    }
    else if(event.getSource()==OKButton){
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    }catch(ClassNotFoundException a){
    JOptionPane.showMessageDialog(null, url,"CLASS NOT FOUND EXCEPTION !!!",JOptionPane.INFORMATION_MESSAGE);
    }
    }
    try{ //Select operation:
    str3=textfield5.getText(); // gets password of user
    int1=Integer.parseInt(str3);
    String run = "SELECT * FROM abc " +"WHERE password = " +int1;
    System.out.println(run + "SQL string executed");
    Connection connection = DriverManager.getConnection(url,"","");
    Statement stmt = connection.createStatement();
    ResultSet result=stmt.executeQuery(run);
    while(result.next()){
    String name = result.getString(1);
    String surname = result.getString(2);
    int amount = result.getInt(3);
    int password = result.getInt(4);

    Amount=amount;
    }
    connection.close();
    }
    catch(SQLException a){
    JOptionPane.showMessageDialog(null,url,"SQL EXCEPTION AT SELECT OPERATION",JOptionPane.INFORMATION_MESSAGE);
    }

    str2=textfield4.getText(); //amount of sent
    int3=Integer.parseInt(str2);
    Amount=Amount-int3;
    //--------------Updating values of the database-------------
    String run = "UPDATE abc SET " +
    "amount='" +Amount+"' WHERE password="+int1;
    try{
    Connection connection = DriverManager.getConnection(url,"","");
    Statement stmt = connection.createStatement();
    stmt.executeUpdate(run);
    System.out.println("Operation completed...");
    connection.close();
    }catch(SQLException a){JOptionPane.showMessageDialog(null,url,"SQL EXCEPTION AT UPDATE OPERATION",JOptionPane.INFORMATION_MESSAGE);
    }
    //---Select operation for the person (the money transferred to)------
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    }catch(ClassNotFoundException a){
    JOptionPane.showMessageDialog(null, url,"CLASS NOT FOUND EXCEPTION !!!",JOptionPane.INFORMATION_MESSAGE);
    }
    try{
    str1=textfield2.getText();//password of receiver
    int2=Integer.parseInt(str1);

    String run2 = "SELECT * FROM abc " +"WHERE password = " +int2;
    System.out.println(run2 + "SQL string executed");
    Connection connection = DriverManager.getConnection(url,"","");
    Statement stmt = connection.createStatement();
    ResultSet result=stmt.executeQuery(run2);
    while(result.next()){
    String name = result.getString(1);
    String surname = result.getString(2);
    int amount = result.getInt(3);
    int password = result.getInt(4);

    Amount1=amount;
    }
    connection.close();
    }
    catch(SQLException a){
    JOptionPane.showMessageDialog(null,url,"SQL EXCEPTION AT SELECT OPERATION",JOptionPane.INFORMATION_MESSAGE);
    }
    Amount1=Amount1+int3;
    //---------Updating the values for the person,money transferred to--
    String run1 = "UPDATE abc SET " +
    "amount='" +Amount1+"' WHERE password="+int2;
    try{
    Connection connection = DriverManager.getConnection(url,"","");
    Statement stmt = connection.createStatement();
    stmt.executeUpdate(run1);
    System.out.println("Operation completed...");
    connection.close();
    }catch(SQLException a){JOptionPane.showMessageDialog(null,url,"SQL EXCEPTION AT UPDATE OPERATION",JOptionPane.INFORMATION_MESSAGE);
    }

    }
    }



    contd..

    FILE NAME: CardTransaction.java




    import java.awt.*; //
    import java.awt.event.*; // PACKAGES
    import javax.swing.*; //
    import java.sql.*; //

    public class CardTransactions extends JFrame {
    private JButton button1,button2,button3;
    private JLabel label1,label2;
    static String url = "jdbc:eek:dbc:abc";
    Container container;
    //---Constructor---
    public CardTransactions(){
    super(" Card Transactions");
    Container container = getContentPane();
    container.setLayout(null);

    button1 = new JButton(">>>");
    button1.setPreferredSize(new Dimension(100,30));
    button1.setSize(button1.getPreferredSize());
    button1.setLocation(30,50);
    //---making connection with the database---
    button1.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent event){
    try{
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    }catch(ClassNotFoundException a){
    JOptionPane.showMessageDialog(null, url,"CLASS NOT FOUND EXCEPTION !!!",JOptionPane.INFORMATION_MESSAGE);
    }
    //--goes to DB2-ChangePword to execute changing password--
    DB2 s=new DB2();s.ChangePword();
    }
    });
    container.add(button1);

    button2 = new JButton(">>>");
    button2.setPreferredSize(new Dimension(100,30));
    button2.setSize(button2.getPreferredSize());
    button2.setLocation(30,100);
    //--makes the connection with the database
    //--and goes to DB2 to execute paying dept
    button2.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent event){
    DB2 s=new DB2();s.DeptPaying();
    }
    });
    container.add(button2);

    button3 = new JButton("<BACK>");
    button3.setPreferredSize(new Dimension(100,30));
    button3.setSize(button3.getPreferredSize());
    button3.setLocation(30,150);
    button3.addActionListener(new ActionListener(){
    public void actionPerformed(ActionEvent event){
    DB2 s=new DB2();s.Back();
    }
    });
    container.add(button3);

    label1 = new JLabel("Change Password");
    label1.setPreferredSize(new Dimension(120,30));
    label1.setSize(label1.getPreferredSize());
    label1.setLocation(130,45);
    container.add(label1);

    label2 = new JLabel("Dept paying");
    label2.setPreferredSize(new Dimension(120,30));
    label2.setSize(label2.getPreferredSize());
    label2.setLocation(130,98);
    container.add(label2);

    setSize(400,350);
    setVisible(true);
    }//--end of constructor

    }

    madhumurundi Certified CEan

    Message Count:
    310
    Engineering Discipline:
    Computer Science
    contd....

    for this project.... main thing we need is Database... so this database can be created through the.. MS-Access

    CLICK HERE to SEE DATA BASE

    Wat abt the topic i provided ... " PC controlling using GPRS enabled Mobile "


    Could u help me out with that ?

    hiii madhumurundi,
    can you help me in deciding my Final Year's project. I'm thinking of making a project on JAVA. do you have any projects that seem to be as an application.

    Help me in finalizing my project by providing some information regarding this......

    Looking forward for yours response...thank you

    Hi Madhu,

    you are great man. I think You are great in java programming. I have read your every post whether on java projects or on Laplace face recognition system. and I am very much fond of your programming and your interest in helping people. I have also a problem. I have just went through your atm database codes and tried to run it on my machine but found difficulty to run it. as of after compiling the program when i run the program it asked for password. so i provided the password which is present in the database (created as directed by you in Ms-Access). But it saying invalid password. so i am not getting the exact solution for this. I have tried each possible steps but I am unable to open it. is there any problem with database connectivity or something else? please provide me the correct solution for this. as this my final year project and hav to submit in next 15 days. as in project I am showing how exactly this atm transaction process is done. everything is done but I am founding difficulty in this part only. please help and reply soon that what should I do? please

    Hey madhu nice threads......
    it will help many peoples....
    i am new to crazyengineers.....Can you plzz help me for the last topic...
    i.e. 7.Route reservation in Internetworking.....
    I am very much interested in doing my project related to ROUTING....will it be a good topic for me.....my project is of 400 marks(last sem)......:rolleyes:

    madhumurundi Certified CEan

    Message Count:
    310
    Engineering Discipline:
    Computer Science
    i don't have any idea in that :confused::confused::confused:

    madhumurundi Certified CEan

    Message Count:
    310
    Engineering Discipline:
    Computer Science
    hi,
    first tell me your area of interest then i will suggest you which project you can do :happy::happy:

    madhumurundi Certified CEan

    Message Count:
    310
    Engineering Discipline:
    Computer Science
    @man_techrazor :

    Hi, Please Sorry .. i couldn't Reply for your query.. early.. i was busy with my Project Work... you just need to change the Password in MS -Access file thats it..... its work fine in my System .... try for it :happy:

    shethchaitali Certified CEan

    Message Count:
    4
    hey i am doing my computer engineering . what is this project inventory system about? can you please mail me the project along with its source code on chaitali.sheth265@gmail.com

    ritzratedr Certified CEan

    Message Count:
    2
    Engineering Discipline:
    Computer Science
    Hi .. I am working on project Network Sniffer/Analyser in java. Can anyone help me .. please :)
    • The MOD Squad

    Kaustubh Katdare The Good Admin

    Message Count:
    28,795
    Engineering Discipline:
    Electrical
    Why not start a new discussion thread and telling us in detail about the problem you're facing?

    ritzratedr Certified CEan

    Message Count:
    2
    Engineering Discipline:
    Computer Science
    @ Big_K Sure .. I will create a new thread for the same :)

    savitap Certified CEan

    Message Count:
    4
    Engineering Discipline:
    Computer Science
    hiii madhumurundi,
    can you help me in deciding my Final Year's project. I'm thinking of making a project on JAVA. do you have any projects that seem to be as an application.

    Help me in finalizing my project by providing some information regarding this......

    Looking forward for yours response...thank you please reply me soon

    savitap Certified CEan

    Message Count:
    4
    Engineering Discipline:
    Computer Science
    [SIZE=+1]Secure Computing[/SIZE]

    sgoutham Certified CEan

    Message Count:
    1
    Engineering Discipline:
    IT
    please provide me the source code for bug tracking system and mobile phone anivirus to

    <email removed>

Share This Page