Create Project SplashScreen



Share on Google+Share on Google+

Create Project SplashScreen
1 Answer(s)      7 years ago
Posted in : Java Beginners
I want to Create project splashscreen that visible only for 1 minute after 1 minute i want to display LogIn form how i can create in java.
View Answers

February 23, 2010 at 12:58 PM

Hi Friend,

Try the following code:

import javax.swing.*;

public class SplashScreen extends JFrame{
public static void main(String[] arg) {
JWindow window = new JWindow();
window.getContentPane().add(new JLabel("Loading Login Page...",SwingConstants.CENTER));
window.setBounds(200, 200, 200, 100);
try {
} catch (InterruptedException e) {
LoginDemo form=new LoginDemo();

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
class LoginDemo extends JFrame{
JPanel panel;
JLabel label1,label2;
final JTextField text1;
final JPasswordField text2;
label1 = new JLabel();
text1 = new JTextField(15);
label2 = new JLabel();
text2 = new JPasswordField(15);
SUBMIT=new JButton("Login");
panel=new JPanel(new GridLayout(4,2));
SUBMIT.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent ae){
String value1=text1.getText();
String value2=text2.getText();
String user1="";
String pass1="";
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/test";, "root", "root");
Statement st = con.createStatement();
ResultSet res = st.executeQuery("SELECT * FROM login where username='"+value1+"' && password='"+value2+"'");
while ( {
user1 = res.getString("username");
pass1 = res.getString("password");
if (value1.equals(user1) && value2.equals(pass1)) {

JOptionPane.showMessageDialog(null,"Incorrect login or password","Error",JOptionPane.ERROR_MESSAGE);
catch(Exception e){
public static void main(String arg[]) {
LoginDemo frame=new LoginDemo();



Related Tutorials/Questions & Answers:
Create Project SplashScreen - Java Beginners
Create Project SplashScreen   I want to Create project splashscreen... can create in java.   Hi Friend, Try the following code: 1) import javax.swing.*; public class SplashScreen extends
create a login project - Development process
create a login project  How to make an application(project)OF LOGIN APPLICATION USING MYSQL DATA BASE TO REGISTER AND LOGIN IN JSF FRAMEORK.  Hi friend, For solving the problem visit to :
Create project from Maven Template
In this section, you will learn to create a simple Java web application project from Maven Template
How to create Hibernate Project in Eclipse?
the Hibernate framework and create project in Eclipse IDE. I am assuming that you... IDE also. Here are the steps of the tutorial: 1. Create the Java Project... Here is the video tutorial of "How to create Hibernate Project
How to create and execute Hibernate project with out Myeclipse ide ?
How to create and execute Hibernate project with out Myeclipse ide ?  Hi, I am new to Hibernate programming please provide me rough design for creating and executing Hibernate project. Thank you
project should i create 1. Detailed study of all modules and submission of SRS...project  i have to do my final year project project topic:Weekly Automatic College Timetable Generation System BRIEF EXPLANATION ABOUT PROJECT
project...   enter 10 integers, store it using array then display... them from lowest to highest number to words conversion create a java program... graphics applet create their own favorite cartoon character
project  suggest a network security project based on core java with explanation
PROJECT  i want online polling system project codding
project  i need a project in java backend sql
project  sir i want a java major project in railway reservation plz help me and give a project source code with entire validation thank you
project  sir i want module and source code on my project hospital management system
project  does hostel management system project contain any dynamic web pages
PROJECT  i want help on making project on mobile banking application..... the application should have SAVING ACCOUNT,CURRENT ACCOUNT,TRANSACTION ETC......... IN APPLICATION
project  sir i want to a project on railway reservation,sir plz give me the source code   plz give me the source code of railway reservation
project   hi , we r working on one project related to our results. we using java and for back end sqlserver 2005. In dis we are trying to retrieve result from some site and store it in our data base so that we can perform
project  how to create core java code for trend analysis calculator
project  For my project their is 2 users, one is users and administers.i want code for giving authentication to these users by using one, means same login form and database table back end is mysgl....and am using wamp sever
Project  Hi, Am starting a new project to draw a 2d graph using java swing and opengl,where in the input for X-axis and Y-axis co=ordinates should be accepted from user... As am very new to this am seeking help so pls help
project..  Write a program to find the result of N students by accepting 5-subject marks from a Mark class and calculate the total and average mark. Display the result of all students in ascending order of rank from Result class
project   Create appropriate packages and super classes etc. to make your program more efficient and your code more manageable. Create a method to print the Pay slip in an appropriate format. The Pay slip should include
Project  <% String project no=request.getParameter("project no"); String qry="select stud name,project name,project type,project...(receipt dt,'dd/mm/yyyy') from proj master "; qry+=" where project
project  I'm designing a netbeans java program/project. I have to design a program that captures the persons name and mark #.then find the average mark of the whole class.after that need to count and display who had the highest
Project  How to show Questions randomly so that no two student get the same questions in online examination system project in Java Server Pages  
EJB Deployment how to create a simple ejd session bean and how to do project setup
EJB Deployment how to create a simple ejd session bean and how to do project..., jdk 1.6 installed in my system. how to create a simple ejd session bean and how to do project setup...? please help me i am getting difficult
=(String) vdata.get(1); String project_name=(String) vdata.get(2); String project
project  Create a class diagram, both, for permanent and contracted employees, the details of which are supposed to be accepted and displayed on screen The following details need to be tracked for permanent employees: Employee
I want simple steps to create Jar File of Java Project - Java Beginners
I want simple steps to create Jar File of Java Project  Hello Sir How I can Create Jar File of Java Project,plz Help Me  Hi Friend... *.java 5. Create a manifest file: C:\examples> echo Main-Class
What is a Project?
, months or years. Basically, a project is started in order to create or bring... a project as a temporary endeavour undertaken to create a unique product, service...Before understanding 'Project Management' in detail, the first thing one
create  how to create an excel file using java
Struts project in RAD
Struts project in RAD  How to create a struts project in RAD
Java Spring Hibernate Struts Training ClassNotFoundException HttpRequestInterceptor java.lang.noclassdeffounderror: org/apache/http/httprequest noclassdeffounderror: org/apache/http/client/methods/httpurirequest java.lang.NoClassDefFoundError: org/apache/http/client/HttpClient How do I resolve this Java Class not found exception? httpclient java.lang.NoClassDefFoundError Apache Commons ioutils maven dependency Read/Convert an inputStream to a String What is the meaning of Java Platform? Why Java is a platform independent language? What is the benefits of learning Core Java? Which technology should I learn after Java? What is array in java with example? How to Convert ArrayList to Array? How to substring in Java? How to format number in Java? What is instance variable in Java? How to download MySQL JDBC driver? What is Calendar class in Java? Which is the best Java tutorials for beginners? How to rename a file in Java? How to delete file in Java code? How to get day from date in Java using Calendar? How to get day of week in Java? How to calculate Date Difference in Java? How to compare date in Java? How to declare array in Java? How to calculate average of array in Java? What is Array in Java? write a java program to find the summation of all the integers entered on command line Sum of two numbers using command line arguments in Java How to create and use Array in Java? How to pass command line arguments in Java? How to create Applet Hello World? Appending String efficiently in Java How to append String in Java? How to list even numbers between 1 and 100? How to add BigDecimal in Java? What is Abstraction In Java? Which is best Beginners Java Tutorial? What is java.util package? Create list from array in Java Filter collection in Java 8 What is the best way to filter a Java Collection? Easy way to transform Collection to Array? How to convert Collection to Array in Java? What are Basic Java Language Elements? Advanced Java Tutorials in 2017 Java brief history Best Reasons to learn Java


Advertisement null