aspose file tools*
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
Author

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"));
setVisible(true);
setSize(250,250);
}
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: extends JWindow problem