Study Viral (Java Tutorials For Beginners - Step By Step)
  • Home
  • Java Tutorials
    • Core Java
    • Java Swing
    • MS Access JDBC Java Application
  • Facebook Page
  • Programs
    • C Programs
    • C++ Programs
    • Java Programs
    • Python Programs
  • UGC NET
  • Home
  • Java Tutorials
    • Core Java
    • Java Swing
    • MS Access JDBC Java Application
  • Facebook
  • Programs
    • C Programs
    • C++ Programs
    • Java Programs
    • Python Programs
  • UGC NET

Java Swing - Digital Clock or Watch (Show System Time and Date) - Study Viral

 May 25, 2018     Digital Clock, Digital Watch, Java Programs, Java Swing, Java Tutorials     1 comment   

Java Swing - Digital Clock or Watch (Show System Time and Date) - Study Viral










Java Swing Application - Digital Clock - Study Viral

This Video Helps you to learn how to create simple Digital Clock within Java Swing Application or Program. This is a basic digital clock in Java that works off your operating system time. You can also use the same to show System Date and Time using Netbeans IDE. The Clock will shown on JLabel of java swing Palette by using following classes.

1). Create a Project in Netbeans IDE
2). Create a Package i.e. digital_clock


3). In digital_clock package create a JFrame and name it as DigitalClock
4) Now drag-drop JPanel to JFrame and cover the JFrame.
5). Right click on JPanel Select  Set Layout -> Absolute Layout.


 6) Now drag-drop four JLabel to JPanel.

7). Select Source Tab to write java code.

8). Import following Classes

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.swing.Timer;


9). Create Timer class object in Global Section

Timer timer ; //At Line 19 in given code

Now you have to type code with in Constructor body.
From Line 22 to Line 53

Rest of Code is given below




Email :: info@studyviral.in
Or
Email :: studyviral.in@gmail.com 
Website:: www.StudyViraL.in 
Facebook Page ::  https://www.facebook.com/StudyViral.in/
For Suggestions You Can Email :: info@studyviral.in
http://studyviral.blogspot.in/





Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

Java Servlet - JSP Registration and Activate a New Account by Email - Study Viral

 May 17, 2018     Java and J2EE web applications, Java Mail API, Java Servlets, Servlet, Servlet Tutorial     2 comments   

Java Servlet - JSP Registration and Activate a New Account by Email - Study Viral

 



In this post you will know about.....



How to Create/Register New Account on a Simple Servlet Based WebSite. After Creating Account Server(Via Gmail) will Send an Verification Link to new Registered User on Registered E-Mail Account.

New User check his/her Email For Activation Link and Click that Link to Activate Account

Please Create New GMAIL Account Without Linking to Mobile Number Also Change Google Account (GMAIL Account) Setting Access For Less Secure Apps Has Been Turned On (Search this line on google - if got any problem) or watch my videos on sending email using java appliation

DataBase :: MySQL

Required Jar Files For This Project (You Can Google for Download)

-- servlet-api-4.0.jar
-- java-mail-api.jar
-- activation.jar
-- commons-codec-1.7.jar (For Generate Encrypt Text)
-- mysql-connector-java-5.1.9.jar

In This Project I Am Using Servlet Annotations(So No web.xml file needed)


Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Newer Posts Older Posts Home

Facebook

StudyViral

Labels

Alphabet Pattern Binary Tree BLOB (Binary Large Object) Computer Networks Computer Science And Applications Paper-II Data Structure DBMS Digital Clock Digital Watch Extra Tutorials File Upload Find Age from Date of Birth Graph-Algorithms Java and J2EE web applications JAVA JDK 12 Java Mail API Java MySQL Java Programs Java Programs List Java Servlets Java Swing Java Swing With MySQL Database Java Tutorials JCalender KVS Compuer Science - January 2017 Question Paper MS Access JDBC Java Application Multiuser Login NETBEANS 11 IDE Occurrence of Digits in Number Operation System Pattern Program Reverse of String Sending Email Servlet Servlet Tutorial Software Engineering Star Struts 2 FrameWork Struts 2 Registration Form UGC NET JULY 2018 Windows Commands

Popular Posts

  • Create CON, AUX, NUL name folder and files in Windows - Study Viral
    Create CON, AUX, NUL name folder and files in Windows - Study Viral Most of you may be aware of many MS-DOS commands but still n...
  • UGC NET JULY 2018 (Computer Science And Applications Paper-II) (Question 26)
    UGC NET JULY 2018 (Computer Science And Applications Paper-II) (Question 26) Q 26. A binary search tree in which every non-leaf node...
  • Java Swing Application for Sending E-Mail - StudyViral
    Java Swing Application for Sending E-Mail - StudyViral Hello Friends Welcome to StudyViraL Channel In this video I am going...

Categories

  • Alphabet Pattern (13)
  • Binary Tree (2)
  • BLOB (Binary Large Object) (1)
  • Computer Networks (2)
  • Computer Science And Applications Paper-II (40)
  • Data Structure (6)
  • DBMS (1)
  • Digital Clock (1)
  • Digital Watch (1)
  • Extra Tutorials (3)
  • File Upload (1)
  • Find Age from Date of Birth (1)
  • Graph-Algorithms (1)
  • Java and J2EE web applications (3)
  • JAVA JDK 12 (1)
  • Java Mail API (3)
  • Java MySQL (5)
  • Java Programs (44)
  • Java Programs List (3)
  • Java Servlets (3)
  • Java Swing (16)
  • Java Swing With MySQL Database (4)
  • Java Tutorials (37)
  • JCalender (1)
  • KVS Compuer Science - January 2017 Question Paper (6)
  • MS Access JDBC Java Application (6)
  • Multiuser Login (1)
  • NETBEANS 11 IDE (1)
  • Occurrence of Digits in Number (1)
  • Operation System (4)
  • Pattern Program (8)
  • Reverse of String (2)
  • Sending Email (1)
  • Servlet (3)
  • Servlet Tutorial (3)
  • Software Engineering (4)
  • Star (7)
  • Struts 2 FrameWork (2)
  • Struts 2 Registration Form (1)
  • UGC NET JULY 2018 (40)
  • Windows Commands (2)

Pages

  • Java Tutorials
  • ASP.NET (in Hindi)
  • Java Programs List

Blog Archive

  • ►  2021 (3)
    • ►  April 2021 (3)
  • ►  2019 (7)
    • ►  June 2019 (1)
    • ►  May 2019 (2)
    • ►  March 2019 (4)
  • ▼  2018 (111)
    • ►  November 2018 (7)
    • ►  October 2018 (20)
    • ►  September 2018 (10)
    • ►  August 2018 (3)
    • ►  July 2018 (19)
    • ►  June 2018 (5)
    • ▼  May 2018 (2)
      • Java Swing - Digital Clock or Watch (Show System T...
      • Java Servlet - JSP Registration and Activate a New...
    • ►  April 2018 (3)
    • ►  March 2018 (11)
    • ►  February 2018 (18)
    • ►  January 2018 (13)
  • ►  2017 (36)
    • ►  December 2017 (10)
    • ►  November 2017 (9)
    • ►  October 2017 (7)
    • ►  September 2017 (10)

About Me

Rohit Basra
Hello guys my name Rohit Basra. I love to code and teach java language.
View my complete profile

Followers

Copyright © Study Viral (Java Tutorials For Beginners - Step By Step) | Powered by Blogger