JChemPaintPanel panel = (JChemPaintPanel)jcppanel.target;
applet.button("hexagon").click();
applet.click();
applet.panel("renderpanel").robot.click(applet.panel("renderpanel").component(), new Point(100,100), MouseButton.LEFT_BUTTON,1);
applet.button("eraser").click();
Point2d moveto=getAtomPoint(panel,0,1);
applet.panel("renderpanel").robot.click(applet.panel("renderpanel").component(), new Point((int)moveto.x, (int)moveto.y), MouseButton.LEFT_BUTTON,1);
moveto=getAtomPoint(panel,0,1);
applet.panel("renderpanel").robot.click(applet.panel("renderpanel").component(), new Point((int)moveto.x, (int)moveto.y), MouseButton.LEFT_BUTTON,1);
moveto=getAtomPoint(panel,0,1);
applet.panel("renderpanel").robot.click(applet.panel("renderpanel").component(), new Point((int)moveto.x, (int)moveto.y), MouseButton.LEFT_BUTTON,1);