Here's my code:
import javax.swing.* ;
class Window extends JFrame
{
public static void main ( String[] args){
}
JPanel pnl = new JPanel() ;
public Window()
{
super( "Swing Window" ) ;
setSize( 500, 200 ) ;
setDefaultCloseOperation( EXIT_ON_CLOSE ) ;
add( pnl ) ;
setVisible( true ) ;
}
Window gui = new Window() ;
}
When I run it with Bluej I get a flickering window that doesn't seem right. Any thoughts? Thanks in advance.