AllExperts > Experts 
Search      

Java

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Java Answers
Question Library

Ask a question about Java
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Artemus Harper
Expertise
I have a BS in computer science and am working towards a Masters degree.

Experience
I have experience in Core Java, good background in Java swing/gui, some experience with JNI, Java reflection, and Java java.nio.* knowledge of Java bytecode and annotations. Basics in c++ and c#
 
   

You are here:  Experts > Computing/Technology > Focus on Java > Java > gui

Topic: Java



Expert: Artemus Harper
Date: 6/5/2008
Subject: gui

Question
my project has an interface, so whenever i execute my program i get that interface itself...but i wish to display another interface first where i will display some details about the project..then a progress bar showing loading..then there will be button say "start", after clicking this button my current interface should come.same as it happens when we play some game or view a greeting card on the net..can you please tell me code for it, that i wil integrate with my project.i have to finish my project on 12 june

Answer
The difficulty of this depends on how you are doing loading. In order to show a progress bar there has to be some kind of measure of progress. I don't know what your program does, or why it takes more than a very short amount of time to load. If you have a way to start loading the application and not display its interface until it is done, you can do this. Java tends to load things lazily, so forcing it to load aggressively and monitor that can be somewhat difficult.

Your best bet is to look at the java splash screen:
http://java.sun.com/developer/technicalArticles/J2SE/Desktop/javase6/splashscree...

The advantage of the splash screen is that it comes up fast. But to add a button, you would need to place a frame where the splash screen is located.

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.