File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes extends JWindow problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "extends JWindow problem" Watch "extends JWindow problem" New topic

extends JWindow problem

oghenekaro EFEKODO
Ranch Hand

Joined: Oct 10, 2005
Posts: 56
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"));
public static void main(String[] a){
new UsingJWindow();

Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
use the search feature here for
Splash Screen

you will find a number of examples
It is sorta covered in the JavaRanch Style Guide.
subject: extends JWindow problem
It's not a secret anymore!