Skip to main content

Posts

Showing posts with the label project

How To Create A Simple Analog Clock

  How To Create A Simple Analog Clock #JAVA #CSS #HTML #coding #tutorial First you will need to include javascript, Html and CSS codes in your text editor as follows; Lets first add  HTML CODES  as below; <div class="clock"> <div class="hour"> <div class="hr" id="hr"></div> </div> <div class="min"> <div class="mn" id="mn"></div> </div> <div class="sec"> <div class="sc" id="sc"></div> </div> </div> After you have inserted the Html code in your text editor you will have now to edit Css code using embedded style, where by the css codes are inserted in between <style> </style>tags, which are normally placed in between <head></head> tags of a html file. The css codes are used to apply formatting to the whole clock . Therefore the  CSS codes  will be inserted as follows; body { display:

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