Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data


< > BotCompany Repo | #1006125 // onUpdateAndNow (for JTextComponent, JCheckBox and others)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (7907L/45K).

// action = runnable or method name (old)
svoid onUpdateAndNow(JComponent c, fO r) {
  onUpdate(c, r);

svoid onUpdateAndNow(JTextComponent c, IVF1<S> r) swing {
  if (c == null) ret;
  onUpdate(c, r);
  callF(r, c.getText());

svoid onUpdateAndNow(L<? extends JComponent> l, O r) {
  for (JComponent c : l)
    onUpdate(c, r);

Author comment

Began life as a copy of #1003287

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1006125
Snippet name: onUpdateAndNow (for JTextComponent, JCheckBox and others)
Eternal ID of this version: #1006125/6
Text MD5: 1095d9be113c6757850ab8088cd2c566
Transpilation MD5: b3cca642d7dca690913c5027d1ead9a0
Author: stefan
Category: javax swing
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-01 23:09:47
Source code size: 373 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 548 / 639
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1007651 - onChangeAndNow - synonym of onUpdateAndNow (for JTextComponent, JCheckBox and others)