// For some reason this does not work
// applet.button("select").click();
// panel.get2DHub().updateView();
// so we crank the lever manually
JCPAction act = new JCPAction().getAction(panel, "org.openscience.jchempaint.action.ChangeModeAction@select");
act.actionPerformed(null);
applet.panel("renderpanel").robot.waitForIdle();
IAtomContainer ethane = panel.getChemModel().getMoleculeSet().getAtomContainer(0);
Renderer r = panel.getRenderPanel().getRenderer();
Point2d atompos0=ethane.getAtom(0).getPoint2d();
Point2d atompos1=ethane.getAtom(1).getPoint2d();