Skip to main content

Posts

Showing posts from February, 2020

EMPLOYEE MANAGEMENT SYSTEM PROJECT CODE

EMPLOYEE MANAGEMENT SYSTEM PROJECT CODE A - Below is the source code of the project. B - Create separate class files for every class. C - Copy the code of one class (ex: login.java) and paste it in Login class file, do it for every class . #stream #blog #knowledge 1 - Create your first class with name 'conn' and paste the code below in it  package Employeee; import java.sql.*; public class conn{        public Connection c;     public Statement s;     public conn(){         try{             Class.forName("com.mysql.jdbc.Driver");             c = DriverManager.getConnection("jdbc:mysql:///project3","root","");             s = c.createStatement();         }catch(Exception e) {             e.printStackTrace();         }     } }   2 - Create second class with name 'Login' and paste the code below in it package Employeee; import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.sql.*; cl