M
Matthijs Blaas
Hi all!
I have an applet(the loader applet) that adds another applet (the subapplet)
to itself. I want this subapplet to be able to draw to the screen, so i make
a new border layout for this subapplet. When I load the loader applet, it
loads the subapplet fine, it calls all methods from the subapplet (even the
paint method), but it draws nothing to the screen? Does anyone know what im
doing wrong here:
<snippet from the loader applet>
Class clas = Class.forName(Subapplet);
sub = (Applet)clas.newInstance();
sub.setStub(stub);
//sub.setLayout(getLayout()); doesn't seem to work correctly only draws a
very small square for subapplet
sub.setLayout(new BorderLayout());
add(sub, "CENTER");
//doLayout(); doesn't seem to do anything
//addNotify(); doesn't seem to do anything
sub.init();
sub.start();
Thanks in advance!
Matthijs Blaas
I have an applet(the loader applet) that adds another applet (the subapplet)
to itself. I want this subapplet to be able to draw to the screen, so i make
a new border layout for this subapplet. When I load the loader applet, it
loads the subapplet fine, it calls all methods from the subapplet (even the
paint method), but it draws nothing to the screen? Does anyone know what im
doing wrong here:
<snippet from the loader applet>
Class clas = Class.forName(Subapplet);
sub = (Applet)clas.newInstance();
sub.setStub(stub);
//sub.setLayout(getLayout()); doesn't seem to work correctly only draws a
very small square for subapplet
sub.setLayout(new BorderLayout());
add(sub, "CENTER");
//doLayout(); doesn't seem to do anything
//addNotify(); doesn't seem to do anything
sub.init();
sub.start();
Thanks in advance!
Matthijs Blaas