public static void setGraphics(Graphics g) {
   try {
     oldG = Reflection.getPrivateValue(Graphics.class, "currentGraphics", null);
   } catch (Exception e) {
     App.getApp().handle(e);
   }
   Graphics.setCurrent(g);
 }
 protected void getPrivates() {
   if (gl != null) return;
   try {
     gl = Reflection.getPrivateValue(Graphics.class, "GL", null);
   } catch (Exception e) {
     App.getApp().handle(e);
   }
 }
 public static Graphics getGraphics() {
   try {
     return Reflection.getPrivateValue(Graphics.class, "currentGraphics", null);
   } catch (Exception e) {
     App.getApp().handle(e);
   }
   return null;
 }