Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

extends JWindow problem

 
oghenekaro EFEKODO
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
need help adding some componenet s to JWindow.want to add pictures and few text,also after a time frame the window should close on its own accord.but couldn't achieve my aim.have a sample code i wrote.please,somebody should tell what to do.thanks for your ever listening hears.

My Code:

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

public class UsingJWindow extends JWindow{
public UsingJWindow(){
add(new JLabel("WELCOME"));
setVisible(true);
setSize(250,250);
}
public static void main(String[] a){
new UsingJWindow();


}
}
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
use the search feature here for
Splash Screen

you will find a number of examples
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic