Splash Screen in Java Swing

Ads
 

Splash Screen in Java Swing

I worte this code,but i'm unable to add this class code to my main class.so plz i request you to guide me how can i add this splesh screen to my main-class-login-page-screen.

package Com.Demo;

import javax.swing.ImageIcon; import javax.swing.JLabel; import javax.swing.JWindow; import javax.swing.SwingConstants;

class SplashScreen {

public static void main(String[]args) {
JWindow window = new JWindow();
window.getContentPane().add(new JLabel("",new ImageIcon("C:/Users/Ashish/eclipse-workspace/Demo/src/Com/Demo/SplashScreen.gif"),SwingConstants.CENTER));
window.setBounds(500, 250, 450, 300);
window.setVisible(true);
try{
    Thread.sleep(5000);
}
catch(InterruptedException e) {}
window.dispose();
}

}

View Answers

Ads









Related Tutorials/Questions & Answers:
Splash Screen in Java Swing
Splash Screen in Java Swing  i wrote this code for splash screen but i'm unable to connect to my main code so i humble request you to plzz how can i connect to my main code. package Com.Demo; import javax.swing.ImageIcon
Splash Screen in Java Swing
Splash Screen in Java Swing  I worte this code,but i'm unable to add this class code to my main class.so plz i request you to guide me how can i add this splesh screen to my main-class-login-page-screen. package Com.Demo
Advertisements
splash screen time delay iphone
splash screen time delay iphone  How can i delay the splash screen?   How to delay splash screen in iPhone/iPad/ Objective C Splash scree... that can be put inside applicationDidFinishLaunching method to delay the splash screen
Print Screen Using Java Swing
Print Screen Using Java Swing       In this section, you will learn how to print in java swing. The printable that is passed to setPrintable must have a print method
virtual on screen keyboar - Swing AWT
virtual on screen keyboar  sir i need shift key operation code in my project program of virtual keyboard can uplz send
java swing
java swing  view the book details using swing
java swing
java swing  what is java swing   Swing is a principal GUI toolkit for the Java programming language. It is a part of the JFC (Java Foundation Classes), which is an API for providing a graphical user interface for Java
Java swing
Java swing  Write a java swing program to calculate the age from given date of birth
java swing - Swing AWT
java swing  how to add image in JPanel in Swing?  Hi Friend, Try the following code: import java.awt.*; import java.awt.image....: http://www.roseindia.net/java/example/java/swing/ Thanks
java swing.
java swing.  Hi How SetBounds is used in java programs.The values in the setBounds refer to what? ie for example setBounds(30,30,30,30) and in that the four 30's refer to what
JAVA SWING
JAVA SWING  Hi.... Iam doing project in java...and my front end in swing ..our project is like billing software... then what are the topics i want cover? then how to design? pls help me
recorder screen in java
recorder screen in java  Dear friends, how can I capture the screen in real time? best regards Riccardo Susca
recorder screen in java
recorder screen in java  Dear friends, how can I capture the screen in real time? best regards Riccardo Susca
Java swing
are displayed in the table..I need the source code in java swing...Java swing  If i am login to open my account the textfield,textarea and button are displayed. if i am entering the time of the textfield
Java swing
to the database using java swing...Java swing  I create one table. That table contains task ID and Task Name. When I click the task ID one more table will be open and that table
Java Swing Tutorial - Learning Java Swing programming step by step
Java Swing SpringLayout in Java Swing Splash Screen in Java... Print Screen Using Java Swing "Hello World" program in Swing...Java Swing tutorial for learning Swing programming in Java step by step
Java Swing Tutorial - Learning Java Swing programming step by step
Java Swing SpringLayout in Java Swing Splash Screen in Java... Print Screen Using Java Swing "Hello World" program in Swing...Java Swing tutorial for learning Swing programming in Java step by step
Java Swing Tutorial - Learning Java Swing programming step by step
Java Swing SpringLayout in Java Swing Splash Screen in Java... Print Screen Using Java Swing "Hello World" program in Swing...Java Swing tutorial for learning Swing programming in Java step by step
Java swing
Java swing  how to create simple addition program using java swing?   import java.awt.*; import javax.swing.*; import java.awt.event.*; class SumOfNumbers extends JFrame { SumOfNumbers(){ JLabel lab1=new
Java swing
Java swing  when i enter the time into the textbox and activities into the textarea the datas saved into the database.the java swing code for the above item   import java.sql.*; import java.awt.*; import javax.swing.
java swing
java swing  what is code for diplay on java swing internal frame form MYSQL DB pls send   Here is a code of creating form on jinternalframe and connect to mysql. import java.io.*; import java.sql.*; import java.awt.
Java swing
Java swing  How to combine two java files
java swing
java swing  meaning of out.flush
Java Query(based on swing concept)
Java Query(based on swing concept)  I want a particular submit button to get disabled whenever i write some account number starting with 774 and 775 in a text box of that screen
Java Swing
Java Swing  I want scroll bar in a frame is it possible? if it is possible means i want coding for that please send me a reply
Java Swing
Java Swing   i have a Label more than that of a frame .... how to extend the frame to view the label which are hidden.. please send me the answer sir/madam
Java Swing
Java Swing  i have a Label more than that of a frame .... how to extend the frame to view the label which are hidden.. please send me the coding sir/madam
Java Swing
Java Swing  i have a Label more than that of a frame .... how to extend the frame to view the label which are hidden.. please send me the coding sir/madam
Java Swing
Java Swing  i have a Label more than that of a frame .... how to extend the frame to view the label which are hidden.. please send me the coding sir/madam
Java swing
Java swing  Design an appliaction for with details such as name,age,DOB,address,qualification and finaly when we click the view details button all types details should be displayed in another View in TextView's..I need the sample
Java swing
Java swing  I create 2 text field f1,f2 and 2 button b1,b2.If i enter some text in the text field and click the button b1 the text field f1 text will be shown in the Message dialog box and if i click the button b2 the text field

Ads