new package, modified for JavaApplet