if (c instanceof FrameHolder)
return ((FrameHolder)c).getGraphicManager();
else if (c.getName() != null && c.getName().endsWith("BootstrapApplet") && c.getClass().getName().endsWith("BootstrapApplet")){
System.out.println("applet: "+c.getClass().getName());
try {
FrameHolder holder=(FrameHolder)Class.forName("com.projity.bootstrap.BootstrapApplet.class").getMethod("getObject", null).invoke(c, null);
return holder.getGraphicManager();
} catch (Exception e) {
return null;
}
}
}