Saturday, 19 December 2015

Add Date and Time






Step 1-At the top under public class and int component write this code or paste it.
Step 2-Paste Code 

currentdate();
        setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource("mandik4.jpg")));
        try
        {
            Class .forName("com.mysql.jdbc.Driver");
            con = DriverManager.getConnection("jdbc:mysql://localhost:3306/hotel","root","TIGER");
        }
        catch(ClassNotFoundException e)
        {
         System.out.println(e.getMessage());
        } catch (SQLException e) {
            System.out.println(e.getMessage());
        }
    }
   
        private void currentdate(){
        Calendar cal=new GregorianCalendar();
        int second=cal.get(Calendar.SECOND);
        int minute=cal.get(Calendar.MINUTE);
        int hour=cal.get(Calendar.HOUR);
        jLabel7.setText("Time"+hour+":"+(minute)+":"+second);
       
       
        int date=cal.get(Calendar.DATE);
        int month=cal.get(Calendar.MONTH);
        int year=cal.get(Calendar.YEAR);
        jLabel5.setText("Date "+date+"/"+(month+1)+"/"+year);
       
        Thread th=new Thread(){
          public void run(){
              for(;;){
        Calendar cal=new GregorianCalendar();
        int second=cal.get(Calendar.SECOND);
        int minute=cal.get(Calendar.MINUTE);
        int hour=cal.get(Calendar.HOUR);
         jLabel7.setText("Time "+hour+":"+(minute)+":"+second);
       
        int date=cal.get(Calendar.DATE);
        int month=cal.get(Calendar.MONTH);
        int year=cal.get(Calendar.YEAR);
        jLabel5.setText("Date "+date+"/"+(month+1)+"/"+year);
                  try {
                      sleep(1000);
                  } catch (InterruptedException ex) {
                      Logger.getLogger(login.class.getName()).log(Level.SEVERE, null, ex);
                  }
              }
          }
        };

        th.start();

Friday, 18 December 2015

Teacher Management

                       
                            Teacher Management
  
          












Download

Project


Mysql File for version 5.0

Scientific Calculator

                   
                    Scientific Calculator

                                                               










                         Download Link: 
                          ZippyShare:     http://www10.zippyshare.com/v/5iJ5dDZy/file.html