Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-07-2008, 02:30 AM
Member
 
Join Date: Feb 2008
Posts: 2
ernieBob is on a distinguished road
problems with class Splashscreen in netbeans
Hello all

I am running netbeans IDE 6.0 (JDK 1.5) on my macbook. I am trying to implement a splashscreen in my GUI but am having some difficulties. I am trying to initialise a new instance of class "Splashscreen" but I keep getting the message "cannot find symbol Splashascreen" from the netbeans. I have attached the full splashscreen code for reference. Any ideas ?

------------------------------------------
import javax.swing.UIManager;
import javax.swing.ImageIcon;
import java.awt.*;

public class SplashScreenMain {

SplashScreen screen = SplashScreen.getSplashScreen();

public SplashScreenMain() {
// initialize the splash screen
splashScreenInit();
// do something here to simulate the program doing something that
// is time consuming
for (int i = 0; i <= 100; i++)
{
for (long j=0; j<50000; ++j)
{
String poop = " " + (j + i);
}
// run either of these two -- not both
//screen.setProgress("Yo " + i, i); // progress bar with a message
screen.setProgress(i); // progress bar with no message
}
splashScreenDestruct();
System.exit(0);
}

private void splashScreenDestruct() {
screen.setScreenVisible(false);
}

private void splashScreenInit() {
ImageIcon myImage = new ImageIcon("images/splash.gif");
screen = new SplashScreen(myImage);
screen.setLocationRelativeTo(null);
screen.setProgressMax(100);
screen.setScreenVisible(true);
}
}
-------------------------------------------
Thank you in advance
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with connecting to Oracle DB in NetBeans m16k2002 Web Frameworks 4 08-18-2008 11:32 AM
Inner class problems orchid New To Java 2 08-13-2008 09:56 AM
Problems with NetBeans gabriel NetBeans 2 11-07-2007 10:49 PM
problems with connecting to Oracle DB in NetBeans m16k2002 NetBeans 0 08-07-2007 08:01 AM
Problems to install NetBeans fred NetBeans 1 08-02-2007 06:58 PM


All times are GMT +3. The time now is 02:25 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org