static JComponent dm_passwordFieldAndSubmit(S field, fS submitMethodName, O... _) { final DynModule m = dm_current_mandatory(); ret dm_passwordFieldAndSubmit(field, rThread { call(m, submitMethodName) }, _); } static JComponent dm_passwordFieldAndSubmit(S field, Runnable action, O... _) { JPasswordField tf = boolPar centered(_) ? dm_centeredPasswordField(field) : dm_passwordField(field); if (boolPar focusOnShow(_)) focusAndSelectAllOnShow(tf); ret centerAndEastWithMargin(onEnter(tf, action), jbutton(optPar buttonText(_, "Submit"), action)); }