Splash screen HELP!!!!

I am trying to implement a splash screen but cannot get it to be displayed....and also how do I get ito appear for a certain before it being disposed.
JWindow splash = new JWindow();
     JLabel image = new JLabel(new ImageIcon("images/splash.jpg"));
     splash.getContentPane().add(image, BorderLayout.CENTER);
     splash.setVisible(true);
thanks
siraj

Hi!
I post code of a splash screen I'm using. I expect it helps you:
import java.awt.*;
public class SplashWindow extends Window implements Runnable {
     private Thread runner;   
     private Image splashIm;   
     private StringBuffer Message;   
     private Image Buffer;   
     private Graphics gBuffer;   
     private int animationStep;
     private int width;
     private int height;
     public SplashWindow(Frame parent, Image splashIm) {       
          this(parent, 400, 222, splashIm);
     public SplashWindow(Frame parent, int width, int height, Image splashIm) {       
          super(parent);
          this.width = width;
          this.height = height;
          this.splashIm = splashIm;       
          setSize(width,height);
          animationStep = 0;       
          /* Center the window */       
          Dimension screenDim = Toolkit.getDefaultToolkit().getScreenSize();       
          Rectangle winDim = getBounds();       
          setLocation((screenDim.width - winDim.width) / 2, (screenDim.height - winDim.height) / 2);
          setVisible(true);       
          toFront();       
          start();   
     //Used for flicker-free offscreen drawing   
     public void addNotify() {       
          super.addNotify();       
          Buffer = createImage(width, height);
          gBuffer = Buffer.getGraphics();   
     public void buildBuffer() {     
          if (splashIm != null) {       
               gBuffer.setColor(Color.white);       
               gBuffer.fillRect(0, 0, width, height);
               gBuffer.drawImage(splashIm,0,0,this);       
               drawAnimation();               
               //Overlay a cute animation       
               gBuffer.setColor(Color.white);       
               gBuffer.drawString(Message.toString(), (width/20), (height-8));
     public void drawAnimation() {     
          if (gBuffer == null)       
               return;     
          if (animationStep < 0)       
               animationStep = 399;     
          for (int i=0; i<400; i++) {       
               int thisColor = (int)(((float)(animationStep + i))/(float)400 * (float)256);       
               while (thisColor > 255) {         
                    thisColor = thisColor-256;       
               while (thisColor < 0) {         
                    thisColor = thisColor+256;       
               gBuffer.setColor(new Color(0, 0, thisColor) );
               gBuffer.drawLine(i, (width/2), i, height);
     public void paint(Graphics g) {     
          if (Buffer != null)       
               if (g != null)         
                    g.drawImage(Buffer, 0, 0, this);   
     // Use this to change the status message. Note that the redraw   
     // is done elsewhere (FYI, inside the animation thread below)   
     public void setMessage(String message) {     
          Message = new StringBuffer(message);   
     public void start() {
          runner = new Thread(this);     
          runner.start();   
     public void stop() {
          runner.interrupt();     
          runner = null;   
     public void run() {
          try { 
               while (!Thread.interrupted()) {           
                    buildBuffer();                 
                    //Build the offscreen buffer           
                    this.paint(this.getGraphics());
                    //Draw the offscreen buffer           
                    animationStep-=8;           
                    Thread.sleep(40);        
          catch(InterruptedException e) {}   
     protected void finalize() {     
          stop();     
          this.splashIm.flush();     
          this.splashIm = null;     
          Buffer.flush();     
          Buffer = null;   
}I use this splashscreen through this class:
import java.awt.*;
public class SplashScreen extends javax.swing.JFrame {
     private SplashWindow sw = null;
     public SplashScreen(String titulo, String imagen, int w, int h) {
          super(titulo);
          setSize(w,h);
          Dimension screenDim = Toolkit.getDefaultToolkit().getScreenSize();
          Rectangle frameDim = this.getBounds();
          setLocation((screenDim.width-frameDim.width)/2,(screenDim.height-frameDim.height)/2);
          MediaTracker mt = new MediaTracker(this);
          Image splashIm = Toolkit.getDefaultToolkit().getImage(this.getClass().getResource(imagen));
          mt.addImage(splashIm,0);          
          try { 
               mt.waitForID(0);
          catch(InterruptedException ie) {}
          sw = new SplashWindow(this, w, h, splashIm);
     public void setMensaje(String mensaje) {
          if (sw != null)
               sw.setMessage(mensaje);
     public void cerrar() {
          sw.dispose();
          this.setVisible(false);
          this.dispose();
}Maybe some code are in spanish, but you can easily translate to english.
Regards.

Similar Messages

  • Change info displayed on splash screen Help-- About

    When I open NI Multisim and click on Help-->About, the splash screen displays the following information in the upper left hand corner of the splash screen:
    test
    Benjamin Franklin Institute
    Serial#
    How/where do I change the word "test" so that it doesn't appear on all the classroom PCs?  Where is the source of the identifying information that appers on the splash screen?
    Thanks.

    Hello,
    In this case “test” is making reference to the Register Owner. This information is requested during the installation process. You will be able to modify this information by modifying a key in the Windows Registry.  Please refer to the link below for more information.
    http://digital.ni.com/public.nsf/allkb/0385A6FBAADE844286256DDB0066FCE8?OpenDocument
    Regards,
    MCOTO

  • PRE crash and now stuck at splash screen - HELP!!

    I was working on a small project (5 mins) a couple of sound tracks and was moving one to different location and PRE crashed - now when I open the program up the splash screen is blurred and I can't select anything except the 8.01 update and those things - HELP - project due in 4 hours!!

    Eric
    With regard to the original desktop icon which targets Adobe Premiere Elements 8.0.exe
    a. if you do not have the program open via Adobe Premiere Elements.exe and you have closed the program that got opened to the Welcome Screen with Adobe Premiere Elements.exe, and if you go back to the Task Manager/Processes,
    DO YOU SEE ANY INSTANCES OF "ADOBE PREMIERE ELEM,,," IN THE LIST OF PROCESSES THERE? If the answer is no, then I do not think that you have to worry unless you have a compelling need for the Welcome Screen. Just my point of view, but the only reasons for it being seem to be:
    a. For Adobe to monitor (track) your activities
    b. Quick access to photoshop.com
    c. Be kept up to date with Adobe Ads
    You should have full control of your Premiere Elements projects using Adobe Premiere Elements.exe to open the program without the Welcome Screen. I just wanted to make sure that there is no evidence that you have 2 instances of the program being open at the same time.
    If you look at the processes opening using Process Explorer Sysinternals, you will note
    a. if you click on the icon that targets Adobe Premiere Elements 8.0.exe, the first process that opens is Adobe Premiere Elements 8.0.exe, followed by Adobe Premiere Elements.exe and what looks like PhotoshopServer.exe. After Adobe Premiere Elements.exe and PhotoshopServer.exe appear, the Adobe Premiere Elements 8.0.exe disappears from the scene leaving the other 2 processes as the running processes.
    b. if you click on the icon that targets Adobe Premiere Elements.exe, Adobe Premiere Elements 8.0.exe never appears, just direct to Adobe Premiere Elements.exe and PhotoshopServer.exe which remain as the running processes.
    I am not sure what happened to your Adobe Premiere Elements 8.0.exe file. But I do not see that you need it to move forward in your projects. I would be curious to know the whys, but is it worth it on your time schedule?
    ATR

  • Main program start before splash screen, help

    hi:
    below is the splash screen code:
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    import java.io.PrintStream;
    import java.util.Random;
    class Splash extends JWindow {
         public Splash(String filename, Frame f, int waitTime) {
              super(f);
              JLabel l = new JLabel(new ImageIcon(filename));
              getContentPane().add(l, BorderLayout.CENTER);
              pack();
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              Dimension labelSize = l.getPreferredSize();
              setLocation(screenSize.width / 2 - (labelSize.width / 2), screenSize.height / 2 - (labelSize.height / 2));
              addMouseListener(new MouseAdapter() {
                   public void mousePressed(MouseEvent e) {
                        setVisible(false);
                        dispose();
              final int pause = waitTime;
              final Runnable closerRunner = new Runnable() {
                   public void run() {
                        setVisible(false);
                        dispose();
              Runnable waitRunner = new Runnable() {
                   public void run() {
                        try {
                             Thread.sleep(pause);
                             SwingUtilities.invokeAndWait(closerRunner);
                        } catch (Exception e) {
                             e.printStackTrace();
                             // can catch InvocationTargetException
                             // can catch InterruptedException
              setVisible(true);
              Thread splashThread = new Thread(waitRunner, "SplashThread");
              splashThread.start();
    below is the constructor that started the splash and the main:
    public static void main(String args[])
    PictureViewer PV = new PictureViewer();
    standaloneApp = true;
    splash Splash sw = new Splash("prestigestetho.gif",null, 5000);
    the splash appear just fine, the problem is that it appears after
    my main program appear first.
    I try to shift the priority of splash, which is sw first and then PV,
    in that case the splash screen appear first then PV, but this time PV
    stay in front of sw makes it totally not viewable.
    is there any method to make splash screen appear first and on the screen you can see the process of main program starting up (for example
    : loading this ...., loading that.....) something like acrobat reader's
    startup screen, and then splash screen disappear and then main program
    pop up.

    okay, I got it, it's under SwingSet2.java the related code is as follow:
    // Used only if swingset is an application
    private JFrame frame = null;
    private JWindow splashScreen = null;
    // The tab pane that holds the demo
    private JTabbedPane tabbedPane = null;
    private JEditorPane demoSrcPane = null;
    private JLabel splashLabel = null;
    * SwingSet2 Constructor
    public SwingSet2(SwingSet2Applet applet, GraphicsConfiguration gc) {
    // Note that the applet may null if this is started as an application
         this.applet = applet;
    // Create Frame here for app-mode so the splash screen can get the
    // GraphicsConfiguration from it in createSplashScreen()
    if (!isApplet()) {
    frame = createFrame(gc);
    // setLayout(new BorderLayout());
         setLayout(new BorderLayout());
    // set the preferred size of the demo
         setPreferredSize(new Dimension(PREFERRED_WIDTH,PREFERRED_HEIGHT));
    // Create and throw the splash screen up. Since this will
    // physically throw bits on the screen, we need to do this
    // on the GUI thread using invokeLater.
    createSplashScreen();
    // do the following on the gui thread
         SwingUtilities.invokeLater(new Runnable() {
         public void run() {
              showSplashScreen();
    initializeDemo();
         preloadFirstDemo();
         // Show the demo and take down the splash screen. Note that
         // we again must do this on the GUI thread using invokeLater.
         SwingUtilities.invokeLater(new Runnable() {
         public void run() {
              showSwingSet2();
              hideSplash();
         // Start loading the rest of the demo in the background
         DemoLoadThread demoLoader = new DemoLoadThread(this);
         demoLoader.start();
    * Show the spash screen while the rest of the demo loads
    public void createSplashScreen() {
         splashLabel = new JLabel(createImageIcon("Splash.jpg", "Splash.accessible_description"));
         if(!isApplet()) {
         splashScreen = new JWindow(getFrame());
         splashScreen.getContentPane().add(splashLabel);
         splashScreen.pack();
         Rectangle screenRect = getFrame().getGraphicsConfiguration().getBounds();
         splashScreen.setLocation(
    screenRect.x + screenRect.width/2 - splashScreen.getSize().width/2,
              screenRect.y + screenRect.height/2 - splashScreen.getSize().height/2);
    public void showSplashScreen() {
         if(!isApplet()) {
         splashScreen.show();
         } else {
         add(splashLabel, BorderLayout.CENTER);
         validate();
         repaint();
    * pop down the spash screen
    public void hideSplash() {
         if(!isApplet()) {
         splashScreen.setVisible(false);
         splashScreen = null;
         splashLabel = null;

  • Hi guys need Help with Displaying Splash Screen?!!?

    Hi Guys.
    Sorry for the last incomplete post my mistake!
    I need help displaying a splash screen as an advertisment or something before i have my main application run.
    Here is the code i wrote (it works as if it were a seperate application)
    package MajourProject;
    import java.awt.AWTException;
    import java.awt.Dimension;
    import java.awt.Robot;
    import java.awt.Toolkit;
    import javax.swing.ImageIcon;
    import javax.swing.JLabel;
    import javax.swing.JOptionPane;
    import javax.swing.JProgressBar;
    import javax.swing.JScrollPane;
    import javax.swing.JWindow;
    * @author Matt
    public class SplashScreen extends JWindow
        public SplashScreen()
            int UpTime = 20000;
            Start(UpTime);
        public void Start(int UpTime)
            ImageIcon ii = new ImageIcon("src/1.jpg");
              JScrollPane jsp = new JScrollPane(new JLabel(ii));
                    JProgressBar Bar = new JProgressBar();
              getContentPane().add(jsp);
              setSize(853,303);
              centerScreen();
              setVisible(true);
                   try
                                Thread.sleep(20000);
                               dispose();
                   catch(Exception IE)
            private void centerScreen()
                    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
                    int x = (int) ((d.getWidth() - getWidth()) / 2);
              int y = (int) ((d.getHeight() - getHeight()) / 2);
              setLocation(x, (y-100));
           public static void main(String [] args)
                 new SplashScreen();
    }but i now have a problem as i already have a main application done as i wrote this seperately. I now need to combine the two together. So what i did was in my Main Application wrote:
    Splash_Screen SS = new Splash_Screen();it then runs my Splash Screen class which i re-wrote to look as such:
    package MajourProject;
    import java.awt.AWTException;
    import java.awt.Dimension;
    import java.awt.Robot;
    import java.awt.Toolkit;
    import javax.swing.ImageIcon;
    import javax.swing.JLabel;
    import javax.swing.JOptionPane;
    import javax.swing.JProgressBar;
    import javax.swing.JScrollPane;
    import javax.swing.JWindow;
    * @author Matt
    public class SplashScreen extends JWindow
        public SplashScreen()
            int time = 15000;
            Start(time);
        public void Start(int UpTime)
            ImageIcon ii = new ImageIcon("src/1.jpg");
              JScrollPane jsp = new JScrollPane(new JLabel(ii));
                    JProgressBar Bar = new JProgressBar();
              getContentPane().add(jsp);
              setSize(853,303);
              centerScreen();
              setVisible(true);
                   try
                                Thread.sleep(20000);
                                dispose();
                   catch(Exception IE)
            private void centerScreen()
                    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
                    int x = (int) ((d.getWidth() - getWidth()) / 2);
              int y = (int) ((d.getHeight() - getHeight()) / 2);
              setLocation(x, (y-100));
    }it obviously runs the default constructor which then runs the other methods in the class but it doesn't seem to show can anybody help me to find out whats wrong? It seems to be there just before the main application launches but only for a split second. And when i am waiting while the thread is sleeping the area i have defined the Content pane for he cursor goes to the loading icon! I don't know if this makes any sence to you but if you can help me it would be most apreciated.
    Thanks.

    SpearOne wrote:
    Hi Encephalopathic
    why would it work if i put it in it's own application surely it wouldn't be caused by this thread.sleep?? everything after it is in fact put to sleep. In its "own" application, nothing happens after it is displayed.
    if it is the problem then could you please give me some code to add quickly to test??
    import java.awt.Dimension;
    import java.awt.Toolkit;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JProgressBar;
    import javax.swing.JScrollPane;
    import javax.swing.JWindow;
    import javax.swing.Timer;
    public class SplashScreen extends JWindow
      private static final String IMAGE_PATH = "src/1.jpg";
      private static final int UP_TIME = 15000;
      public SplashScreen()
        Start();
      public void Start()
        ImageIcon ii = new ImageIcon(IMAGE_PATH);
        JScrollPane jsp = new JScrollPane(new JLabel(ii));
        //JProgressBar Bar = new JProgressBar();
        getContentPane().add(jsp);
        setSize(853, 303);
        centerScreen();
      private void centerScreen()
        Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
        int x = (int) ((d.getWidth() - getWidth()) / 2);
        int y = (int) ((d.getHeight() - getHeight()) / 2);
        setLocation(x, (y - 100));
      public static void main(String[] args)
        final JFrame frame = new JFrame("Main Frame");
        frame.setPreferredSize(new Dimension(300, 200));
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setLocationRelativeTo(null);
        final SplashScreen splash = new SplashScreen();
        splash.setVisible(true);
        Timer swingTimer = new Timer(UP_TIME, new ActionListener()
          public void actionPerformed(ActionEvent e)
            splash.dispose();
            frame.setVisible(true);
        swingTimer.setRepeats(false);
        swingTimer.start();
    }

  • After Effects CS6 wont open splash screen only PLEASE HELP

    when i start up the splash screen comes up for like 3 seconds and closes thats whats been happeninf for over 3 days and im on a busy schedule editing my short movie please help imidiate answers needed i tried reinstalling, updating, changin folders and installing, i cleared the 10.0 and 11.0 folders in the appdata i dont know what else to do i even restarted many times nothing is helping please someone reply at the earlies
    thank you
    harish

    If you need an immediate answer, then you should contact Adobe Technical Support:
    http://www.adobe.com/support/contact

  • Help displaying a splash screen.

    Hi Guys.
    I need help displaying a splash screen as an advertisment or something before i have my main application run.
    Here is the code i wrote (it works as if it were a seperate application)
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package MajourProject;
    import java.awt.AWTException;
    import java.awt.Dimension;
    import java.awt.Robot;
    import java.awt.Toolkit;
    import javax.swing.ImageIcon;
    import javax.swing.JLabel;
    import javax.swing.JOptionPane;
    import javax.swing.JProgressBar;
    import javax.swing.JScrollPane;
    import javax.swing.JWindow;
    * @author Matt
    public class SplashScreen extends JWindow
        public SplashScreen()
    Start();
        public void Start(int UpTime)
            ImageIcon ii = new ImageIcon("src/1.jpg");
              JScrollPane jsp = new JScrollPane(new JLabel(ii));
                    JProgressBar Bar = new JProgressBar();
              getContentPane().add(jsp);
              setSize(853,303);
              centerScreen();
              setVisible(true);
                   try
                                Thread.sleep(20000);
                               dispose();
                   catch(Exception IE)
            private void centerScreen()
                    Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
                    int x = (int) ((d.getWidth() - getWidth()) / 2);
              int y = (int) ((d.getHeight() - getHeight()) / 2);
              setLocation(x, (y-100));
           public static void main(String [] args)
                 new
    }

    And there's a problem with that code, is there?
    I don't really feel like running the code to find out what that problem might be, so let me just point out that splash screens are built into Java 6. Adding a splash screen to your program requires nothing more than using a command-line argument to point at the image file.

  • HELP! PP & Encoder both stop loading - splash screen stops at chromakey.aex

    When attempting to launch, each version of Premiere Pro and Encoder (Cs6, CC 2014) are stopping when the splash screen gets to ChromaKey.aex.  I have tried un-installing and reinstalling, running the Adobe Cleaner but still the same problem.  Any ideas please?

    reset your preferences -
    adobe media encoder: HELP! PP & Encoder both stop loading - splash screen stops at chromakey.aex
    after effects:  http://helpx.adobe.com/after-effects/using/preferences.html
    dreamweaver:  https://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs6-cc.html
    flash:  http://helpx.adobe.com/flash/kb/re-create-preferences-flash-professional.html
    illustrator:  http://helpx.adobe.com/illustrator/using/setting-preferences.html
    indesign:  https://forums.adobe.com/thread/526990
    lightroom: https://helpx.adobe.com/lightroom/help/setting-preferences-lightroom.html
    muse (mac): https://forums.adobe.com/thread/1246022?tstart=0
    photoshop:  https://forums.adobe.com/thread/375776
    photoshop elements:  http://www.photokaboom.com/photography/learn/Photoshop_Elements/troubleshooting/1_delete_p references_file.htm
    premiere pro: http://www.mediacollege.com/adobe/premiere/pro/troubleshooter/trash-preferences.html

  • PLEASE HELP :) PC restarts automatically at windows xp splash screen

    i'm about to commit suicide...i bought a K8N Neo4 platinum SLI mobo from a friend from a prefectly working PC...i even sent the mobo back to MSI for that free upgrade for the X2 and 7800 video cards. i also bought new psu, new memory(from the list of compatibles modules from the MSI site) and a new sata2 hdd. It installs windows perfectly and when it finishes and restarts, when the xp splash screen appears, the bar doesnt appear and after a 2 seconds it restarts automatically. a friend told me that it maybe the winxp pro cd that doesnt have the service pack  and doesnt recognize the entire size of the hdd sata, so i got a winxp home with the SP1 already inside and it detected the hdd correctly but still does the same stupid thing. another friend told me it was the bios settings for the ram and stuff. i'm out of options and im about to burn it down and buy a brand pc lol. Before this PC i had a athlon xp 2500 with a gygabite mobo and it ran perfectly..then i bought this motherboard and a new psu..reused the memory and the disks drives and it gave me problems, throwing blue screens at installation and copy errors...i swaps memory sticks and psu and it got a little better but still restarted at the splash screen...ok here goes the impossible part. I installed back ALL my original equipment that it was working perfectly fine..and when i installed windows it gave me the same problems as with the new one...how was that possible??...then i decided to buy everything new and it still giving me problems. please help guys.
    here are my specs:
    K8N NEo4 platinum sli mobo
    athlon 64 3800+ (90nm..forgot the core name)
    corsair 1gb module valueselect ddr400
    western digital sata2 250gb hdd
    POWMAX demon psu 580 watts +3.3V@32A, +5V@40A, +12V@24A, [email protected], [email protected], +5vsb@2A
    XTASY ati radeon x300SE 256mb pci express
    liteon 1663s dvd+-rw
    aopen dvdrom
    please help :(

    Quote from: stonerhino on 07-October-05, 12:44:23
    ok i did the isolation thingy . First i disabled my dvdrw drive and when i startedup , the splash screen's bar moved six times and then restarted...theres and advance...it did nothing b4. I changed the memory sticks to old ones i have and did the same thing..so memory it isnt.
    FInally i enabled back on my dvdrw and disabled my dvdrom and windows magically boot up perfectly...how a dvdrom drive affect the windows boot?...im still checking if it crashes or reboot again but for now everything is fine...really thanks a lot for ur help guys. By coincidence, the 2 drives were the only things that i reused from my old pc...im installing drivers and we'll see how this turns out
    A que te doy una gaznata, te lo dije saca todas las viejeras ese mobo es de clase y no para q estes usando porquerias en el.
    By the way I am the guy who sell the mobo to him.

  • Splash screen loads, then FF crashes, even with Shift key held down. HELP!

    For some weeks now I have been having problems with both Firefox and Thunderbird. Neither will load. Sometimes I have been able to load once after a clean reinstall. I have tried:
    virus scanning and cleaning
    portable version on different computers (I use a portable version whenever possible but this has become an issue on static computers also)
    deletion of data folder
    Just to rub salt in the wound, when the programs crash and I try to send a report, the error reporter says it is unable to send a report. Have not had time/patience to look into that.

    Firefox Portable has a splash screen. I don't think FirefoxPortable will launch into SafeMode, or it just doesn't work for me.
    If you are using FirefoxPortable ''[which isn't made by Mozilla, it's a 3rd party application]'', you might want to ask for help from the appropriate forum. Maybe they have a trick for launching in the SafeMode that I am unaware of.
    http://portableapps.com/forums/support/firefox_portable

  • Splash Screen then nothing else (Please Help)

    I am doing a project for school and this is the first Splash Screen I have done. My splash screen displays and exits ,but the application doesn't start.
    Here is my code for the splash screen:
    public class SplashPanel extends JWindow {
    private int duration;
    private int running;
    /** Creates a new instance of SplashPanel */
    public SplashPanel(int d) {
    duration = d;
    public void showSplashPanel(){
    JPanel content =(JPanel)getContentPane();
    content.setBackground(Color.WHITE);
    int width =875;
    int height=450;
    Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
    int x = (screen.width=width)/2;
    int y = (screen.height-height)/2;
    setBounds(x,y,width,height);
    JLabel label = new JLabel(new ImageIcon("chefsong.gif"));
    JLabel otherLabel = new JLabel("Welcome to South Park!");
    otherLabel.setFont(new Font("Arial", Font.BOLD, 20));
    Color oraRed = new Color (156, 20, 20, 255);
    content.setBorder(BorderFactory.createLineBorder(oraRed, 10));
    setVisible(true);
    try{
    Thread.sleep(duration);}
    catch
    (Exception e){}
    setVisible(false);
    public void showSplashPanelAndExit(){
    showSplashPanel();
    System.exit(0);
    and here is the code for my application:
    ublic class DisplayContainer extends JPanel implements spInterface{
    private SplashPanel sp;
    /** Creates a new instance of DisplayContainer */
    public DisplayContainer() {
    setLayout(new GridLayout(1,1));
    sp= new SplashPanel(10000);
    sp.showSplashPanelAndExit();
    public void setImagePanel(){
    ImagePanel ip1 = new ImagePanel("kyle14.gig");
    ImagePanel ip2= new ImagePanel("kenny2.gif");
    ImagePanel ip3= new ImagePanel("stan14.gif");
    setLayout(new GridLayout(3,1,5,5));
    ip1.setDelay(20);
    ip2.setDelay(30);
    ip3.setDelay(40);
    add(ip1);
    add(ip2);
    add(ip3);
    validate();
    public void displayIt(String s){
    if(s.equals("Start")){
    System.out.println("The start button was clicked.");
    System.out.println("Cartman says, Let's begin the damn race.");
    else if (s.equals("Reset")){
    System.out.println("The reset button was clicked");
    System.out.println("Kenny says, I can't believe you are making me start over");
    else if(s.equals("Stop")){
    System.out.println("The stop button was clicked");
    System.out.println("Chef says, Why are you stopping the damn race?");
    else if(s.equals("Exit")){
    System.out.println("The exit button was clicked");
    System.exit(99);
    repaint();
    I actually have othe classes including an interface, main, and image panel. Any help you can give me is greatly appreciated. Thanks in advance.

    Your DisplayContainer constructor calls showSplashPanelAndExit()
    which will cause the application to end because of System.exit(0). Is
    this what you intend?
    (When you post code use the "code" tags described here:
    http://forum.java.sun.com/help.jspa?sec=formatting Type [code] at
    the start of your code and  at the end. That way the code will
    be formatted and readable.)

  • HELP!! 700W STUCK IN TREO SPLASH SCREEN

    My Treo 700w seems to be bricked -- all I get is the first splash screen upon inserting the battery. The power button will not turn the unit off.  Cannot re-flash unit via activesync because USB won't work either. 
    I've executed multiple hard resets and even though the reset "erase" message appears the unit goes right back to Treo splash screen after tapping "up" but no progress bar appears.
    Is there a way to re-flash via SD card? 
    This seems a common problem with w and wx units, there are two similar posts with over 900 views and no replies or solutions, what's going on that neither Verizon or Palm can deal with this?
    See posts:
    "Treo 750 problem - hangs on orange Palm logo - Windows OS does not load???" 722 views
    "Treo 700wx - Stuck in Treo load screen - Help!!!"  158 views
    Post relates to: Treo 700w (Verizon)

    For those finding this page and saying $%#*, there is a solution!
    You can use an SD card and reinstall the rom (OS) update directly from there without using your data cable.
    Instructions for updating ROM
    Format SD Card as FAT32.
    Copy Rom image to root of SD card.
    Remove Battery from phone, and unplug the power cord.
    Reinsert BATTERY while holding the up volume button on the side of the phone.
    Follow on screen prompts.
    Once the update starts, PLUG IN your power cord. You don't want the battery to go dead while updating.
    Wait for approximately 20 minutes for the update to complete.
    Once you align page and close the tour, it may look like it needs to update again. Click cancel/exit!
    Post relates to: Treo 700wx (Verizon)
    Post relates to: Treo 700wx (Verizon)

  • Splash screen - need help loading

    I am having trouble calling a simple splash screen class from my main application class; My main application class called PUI, with all of my code that is working, I created a very simple splash class called PS. I want the PS to show before the main PUI application loads. Here is the simple code for the PS class.
    public class PandoraSplash {
         public static void main(String[] arg) {
              JWindow window = new JWindow();
              window.getContentPane().add(
                        new JLabel("Loading PANDORA...", SwingConstants.CENTER));
              window.setBounds(200, 200, 200, 100);
              window.setVisible(true);
              try {
                   Thread.sleep(5000);
              } catch (InterruptedException e) {
                   e.printStackTrace();
              window.setVisible(false);
              window.dispose();
    } As you can see the Thread is set for 5000, then I want the main PUI to open. How do I call this class from PUI? also, How do I make this class come first in the load of the entire package?
    Thank you, all help will be much appreciated!

    Note: This thread was originally posted in the [New To Java|http://forums.sun.com/forum.jspa?forumID=54] forum, but moved to this forum for closer topic alignment.

  • HT5945 new macbook pro loaded with mavericks. installed CS3 including prompted Java update. try to open photoshop &  empty splash screen pops up-can't go further. tried newer java update-same result. re-opened 4 times-same. help!!

    new macbook pro loaded with mavericks. installed CS3 including prompted Java update. try to open photoshop &  empty splash screen pops up-can't go further. tried newer java update-same result. shut down 4 times-same. any suggestions?

    Kappy wrote:
    Has it occurred to you that CS3 isn't compatible with Mavericks? Try using CS9 or 10.
    Sorry that's untrue. I have Photoshop CS3 running on 10.9.
    CS9 or 10? Now you are just making stuff up.
    Adobe claim CS3 will work, with a minor issue…
    http://helpx.adobe.com/x-productkb/global/mac-os-mavericks-compatability.html
    The Adobe updater fails to work for me.
    I was prompted to install J6RE which came from Apple, check the Apple support downloads http://support.apple.com/downloads/#java%206
    Sorry can't provide a direct link, it was just a dumb 'You need … please click install' dialog.
    I think the 10.9 java updater is installing version 7.

  • Z77A-GD65 Multiple BIOS Issues - B4 Hang, Splash Screen Blinking

    Back in November 2012, I built a home server with a Z77A-GD65.  Lately, I've noticed some strange things happening that I've been trying to research but to no avail.
    First off, I get the B4 code hang-up whenever I'm booting.  This doesn't matter if it's a cold boot or a reboot, it hangs on B4 for about 10-15 seconds, flashes 92 really quick, and then goes to A2 which it stays for another 5 or so seconds.  After that I get the MSI splash screen for about 1 second, then it blinks 5 times.  After that it goes into Windows just fine.
    The blinking is a new issue, the B4 hang is not.  I've read from multiple posts that this is a USB issue.  When I disable USB legacy support, the issue goes away, but of course then I can't have legacy support.  I have yet to figure out what exact device is causing it.  In the process of trying to figure this out, I updated BIOS to A.A0.  After updating to this version of BIOS the splash screen blinks 5 times before going to the "Starting Windows" splash screen.  This is a more difficult issue to figure out why it's doing this because if you search for "BIOS" and "flash" or "flashes" or "flashing", you typically get results for flashing your BIOS.   Hence, why I'm using the term "blinking".  But even then I can't really find a solution out there.
    I also happened to see that the website for the Z77A-GD65 is showing a newer BIOS version, but I'm unable to flash this (at least using M-Flash).  I threw it on a USB, re-enabled USB legacy and whenever I click on it to install, the BIOS screen hard locks.  The screen just freezes exactly where it's at in the BIOS and the mouse is dead.  However, I can CTRL+ALT+DEL on the keyboard and it will reboot the system so I don't need to power cycle the computer.  Not sure why this is happening either.  Perhaps I need to flash this a different way?  Maybe I don't need to flash this at all?
    I could really use some input here on why this is happening.
    As for the specs on my system, they're as follows:
    i7-3770K overclocked to 4.2 Ghz by using the Turbo Mode in BIOS
    32GB Komputerbay DDR3 PC3-12800 1600MHz DIMM with Low Profile Blue Heatspreaders Quad Channel RAM | 9-9-9-24 XMP ready
    AMD PowerColor 7870 Myst Edition GPU - currently not overclocked although overclocking this doesn't seem to affect any issues
    2 - 128 GB Corsair SATA III SSD - one runs the OS, the other I use to load games from
    2 - 500 GB Seagate Barracuda 7200 RPM Sata II HDD's mirrored via Windows 7
    1 - 750 GB Seagate Barracude 7200 RPM Sata II HDD
    1 - 1 TB Western Digital MyBook USB 2.0 external
    2 - 3 TB Seagate USB 3.0 external
    ASUS DVD Burner - not sure which one, it's a cheapy $20 from Newegg
    1 - PCI USB 3.0 expansion card
    Antec TruePower New TP-550 Modular 550W Continuous Power ATX12V V2.3 / EPS12V V2.91 SLI Certified CrossFire Ready 80 PLUS BRONZE Certified Active PFC "compatible with Core i7/Core i5" Power Supply
    NZXT Switch 810 gunmetal - currently have 4 fans running but plan on more, also the Switch 810 has the multi-card reader in the front with 1x SD Card, 2x USB 2.0, 2x USB 3.0
    for peripherals
    1 - Microsoft 360 Wireless controller adapter (legit one, not the knockoff although I had a knockoff prior to getting the real deal)
    1 - Logitech Wireless USB Keyboard with Touchpad
    I tried to be thorough.  Thanks in advance for any help!

    Quote from: PirateDog on 26-August-13, 12:45:18
    Probably a USB device problem.
    This is a candidate, as well as mouse and keyboard. Disconnect USB devices one at a time to find the culprit.
    A lot of devices running. PSU a +12V single rail or is it multi rail? A rail going to the graphics or components may not be enough amps. My best guess is the card reader.
    For UEFI/BIOS flashing, select your mainboard here and use the forum flash method;
    I'll definitely try unplugging some of these USB devices to see if that helps with the B4 hang issue.
    As for the PSU, according to the description for it on Newegg:  "Four industry-leading independent +12v rails are provided for more stable and safer power output."  It has two rails going to the GPU.  The GPU is a new addition to the system and so I wasn't running it until recently.  The issues were occurring beforehand, but you're right that this PSU is underpowered for the rig considering PowerColor recommends a minimum of 500w.  I'm going to be buying a larger capacity one sometime in the very near future.  Any recommendations on good modular PSU's?  What's a good way to tell what wattage to get?
    Thanks for letting me know about the forum flash method.  I'll be back later when I have some results.

Maybe you are looking for