[EMAIL PROTECTED] wrote:
>Can I put standard AWT elements into an ND applet?>
>How?
>
>Thanks!!

A solution for placing an image into an ND applet...

(I put the following code in my applet's action performed event handler)

   Image img = ...some image you created...
   CSpAwtImage imageAWT = new CSpAwtImage();
   imageAWT.setImage(img);
   imageAWT.setSize(w,h);
   imageAWT.setLocation(100,100);
   ISpJavaContainerPeer ispjcp = this.getJavaContainerPeer();  // this is so that you 
can 
                                                                           // get the 
applet's container peer
   ispjcp.add(imageAWT);                                      // add the image to the 
peer container(the actual applet container)

   This is really convoluted...  I also haven't gotten any cooperation from the layout 
manager either.  The setlocation
for imageAWT ends up being the location the image appears at in the applet.


_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to