public void stop()
{
for (int i=0;i<basis.getElementCount();i++)
{
Element element=basis.getElement(i);
element.layeredPane.stop();
element.setVisible(true);
if (element.classRef!=null)
{
try
{
element.classRef.xonStop();
element.mouseEventsTo=null;
} catch(Exception ex)
{
basis.owner.stop();
basis.owner.showErrorMessage("Error in Method xonStop() :\n"+ex+"\n im Element : "+element.getName()+"\napplication interrupted abgebrochen!");
}
element.setBorderVisibility(element.oldBorderVisibility);
}
}
for (int i=0;i<basis.getDrahtCount();i++)