Applet and AWT canvas/frame support (work in progress, untested)