I have to use Frame not JFrame. I have to use BorderLayout.
I created a
class A extends Frame{}
class B extends Frame{}
and I woule like to add instance of class A into class B but what I get is another window. I want to make that A is "subframe" to B it is inside of it.
class B{  
...
    setLayout(new BorderLayout());
        Panel p = new Panel();
        a = new A();
        p.add(a);
        add(a, BorderLayout.CENTER);
....
}
 
    