the following code is not showing the button.please help
import java.awt.*;
public class myclass extends Frame{
public static void main(
String args[]){
my class me=new myclass();
me.setTitle("i am frame");
me.setBounds(5,5,300,300);
me.setVisible(true);
Panel p=new Panel();
p.add(new Button("i am new"));
me.add(P,BorderLayout.NORTH);
}
}
Also RHE does'nt specify to create an instance of a class,, which extends Frame.so i really dont know what's the write way to create a independent Frame .