static void onInternalFrameActivated(final JInternalFrame w, fO r) { if (w != null) swing { w.addInternalFrameListener(new InternalFrameAdapter { public void internalFrameActivated(InternalFrameEvent e) { pcallF(r); } }); } }