i am trying to extend a splashscreen window ti 15 minutes can anyone help.

import java.awt.*;
import javax.swing.*;

public class flowerOrder extends JWindow
{
     private JProgressBar bar;
     private JLabel ImageHolder;
     private ImageIcon myImage;
     private int i;

     public flowerOrder(){

       setBounds(60,60,600,600); //set location and size of the window
       getContentPane().setBackground(Color.BLUE); //set the background color of the window

       //create an image from suitable file
       myImage = new ImageIcon("/myImage.JPEG ");
       ImageHolder = new JLabel(myImage);

       bar = new JProgressBar();   //create a progress bar
       bar.setMaximum(100);        //set maximum value of the bar
       bar.setStringPainted(true); //enables the display of text on the bar

       setLayout(new BorderLayout()); //set the layout style of the window

       //add elements to the window
       add(ImageHolder, BorderLayout.CENTER);
       add(bar, BorderLayout.SOUTH);

       setVisible(true);   //make the window visible

       //incrementing the progress bar
       String percent = "";
       for (i = 0; i <= 100; i++)
       {
             for (long j=0; j<50000; ++j)
             {
                percent = " " + i + "comps[(frame/3)%5]";
             }
              bar.setValue(i);

         }

        if(i==101)
          System.exit(0);//dispose of the window or launch the first frame of your application
     }

     public static void main(String[] args){
         new flowerOrder();
     }
}

sorry i meant to say 15 seconds

it ok after looking at the other splash screen examples i got the answer thank u

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.