date:20/11/2001
from asif ali<
prexml@yahoo.com>
subject :uncleared panel topic
sir
please help me undestand awt.
i would like to put panel object in Frame object.
how can i create it in Awt?
import java.awt.*;
class DemoPanel extends Frame{
DemoPanel(){
super("This is second bid");
Panel p = new Panel();// erroe why?
add(p); //error
p.setBounds(100,100,50,50);
p.setVisible(true);
}
public static void main(
String arg []){
DemoPanel dd = new DemoPanel();
}
}
asif ali
<
prexml@yahoo.com>
Q2. the following statement is hazy .please explain it.
statement1.
"PANEL: Panel is genric container for holding component"
statement2.
"Panel is concrete subclass of container."
thanks for givig time.