Hi, I'm using eclipse to write my programs
but for some reason this code does not work
can someone tell me whats wrong with it?
here is the code. and sorry if i didnt use the code wrapper properly.
package dataTypes;
import javax.swing.*;
public class Window
{
JPanel pnl = new JPanel();
public static void main(String[] args)
{
// TODO Auto-generated method stub
Window gui = new Window();
}
public Window()
{
super( "hello kishan" );
setSize( 500, 200);
setDefaultCloseOperation( EXIT_ON_CLOSE);
add( pnl ):
setVisible( true );
}
}