This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
Similar Threads
Why if override paint (and call super.paint) do components of JWindow not show up?
how to draw on Jwindow?
Displaying a JWindow
JProgressBar not appearing properly
Jwindow