public void setSize(Dimension d) { super.setSize(d); if (offg != null) { offscreen = createImage(getWidth(), getHeight()); offg = offscreen.getGraphics(); } /* if(IGView.view!=null){ IGView.view.setScreenSize(w,h); IGView.view.update(); } IGCore.setDisplaySize(d); */ }
public void initScreen() { offscreen = createImage(getWidth(), getHeight()); if (offscreen != null) { offg = offscreen.getGraphics(); } }