Here\'s a serious issue im having with a jFrame. I have one \"Main Frame\" where everything is done from, however i have another frame with a gif image in it (Loading, that
You use Timer Class in java.util package and schedule timertask to close the splash screen after some time say 2 min or the task is completed.
final Processing nc = new Processing();
nc.setVisible(true);
Timer timer = new Timer():
TimerTask task = new TimerTask() {
public void run() {
nc.setVisible( false );
// to do disposing nc
}
};
timer.schedule( task, 1000 * 3 ); // dispose the processing frame after 3 minutes