Sunday, 9 February 2014

Creating a Digital Clock using an Applet in Java...


Here is Full Code To Create a Digital through JAVA Applet


import java.awt.*;
import java.awt.Graphics;
import java.applet.Applet;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
public class DGClock extends Applet {
    DateFormat dateFormat;
    Date date;
    Thread t;
    public void init() {
        this.setSize(300,200);
    }
    public void paint(Graphics g)
    {
        try
        {
            Font f=new Font("Arial",Font.BOLD,50);
            g.setFont(f);
            g.setColor(Color.DARK_GRAY);
            dateFormat = new SimpleDateFormat("hh:mm:ss a");
            date = new Date();
            g.drawString(dateFormat.format(date),5,100);
            Font f1=new Font("Arial",Font.BOLD,10);
            g.setFont(f1);
            g.drawString("For More Example Visit : exceptionthroow.blogspot.in",20,170);
            g.drawString("Email : agotariyanilesh@gmail.com",65,185);
            showStatus("Developed By : Nilesh Agotariya");
            t.sleep(1000);
            repaint();
        }catch(Exception e)
        {
        
        }
    }
}


15 comments:

  1. This is really nice to read content of this blog. A is very extensive and vast knowledgeable platform has been given by this blog. I really appreciate this blog to has such kind of educational knowledge. นาฬิกา สาย หนัง

    ReplyDelete
  2. This is most informative and also this post most user friendly and super navigation to all posts... Thank you so much for giving this information to me.. 
    Best Devops Training in pune
    Microsoft azure training in Bangalore
    Power bi training in Chennai

    ReplyDelete

  3. It seems you are so busy in last month. The detail you shared about your work and it is really impressive that's why i am waiting for your post because i get the new ideas over here and you really write so well.

    Selenium training in Chennai

    ReplyDelete
  4. Just stumbled across your blog and was instantly amazed with all the useful information that is on it. Great post, just what i was looking for and i am looking forward to reading your other posts soon!
    Python Online certification training
    python Training institute in Chennai
    Python training institute in Bangalore

    ReplyDelete
  5. Nice blog
    For data science training in bangalore, Visit:
    Data Science training in bangalore

    ReplyDelete
  6. Thanks for one marvelous posting! I enjoyed reading it; you are a great author. I will make sure to bookmark your blog and may come back someday. I want to encourage that you continue your great posts
    Salesforce Training | Online Course | Certification in chennai | Salesforce Training | Online Course | Certification in bangalore | Salesforce Training | Online Course | Certification in hyderabad | Salesforce Training | Online Course | Certification in pune

    ReplyDelete
  7. Excellent Blog! I would like to thank for the efforts you have made in writing this post. I am hoping the same best work from you in the future as well. I wanted to thank you for this websites!
    Training in Velachery | Certification | Class Room | Online Training

    SET-3 DATA SCIENCE



    data science training in chennai

    data science training in velachery

    android training in chennai

    android training in velachery

    devops training in chennai

    devops training in velachery

    artificial intelligence training in chennai

    artificial intelligence training in velachery

    ReplyDelete
  8. This is most informative and also this post most user friendly and super navigation to all posts... Thank you so much for giving this information to me..
    Visit us: Dot Net Training Online India
    Visit us: .Net Online Training Hyderabad

    ReplyDelete
  9. Whom dream left view security must. Affect positive court. Magazine shake party type lay.news today live

    ReplyDelete
  10. Authority purpose success participant state. Cut pull agency management attack friend increase.entertainment

    ReplyDelete