public void init() { if (mouse == null) { mouse = new MyMouseAdapter(); this.addMouseListener(mouse); } super.init(); }
public void imageReady(boolean skipFrame) { if (!Globals.focused) { setFocusable(true); requestFocus(); Globals.focused = true; } // Draw image first: super.imageReady(skipFrame); frameFinished = true; }