static void onFocus(final JComponent c, fO action) { swing { c.addFocusListener(new FocusAdapter { public void focusGained(FocusEvent evt) { pcallF(action); } }); } }