static JFrame activeFrameInVM() { for (JFrame f : allFrames()) if (isActiveFrame(f)) ret f; null; }