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

13
LINES

< > BotCompany Repo | #1015920 // onSelectedItem - for JComboBox

JavaX fragment (include)

static JComboBox onSelectedItem(final JComboBox cb, final VF1<S> f) {
  addActionListener(cb, r {
    pcallF(f, selectedItem(cb))
  });
  ret cb;
}

static JComboBox onSelectedItem(final JComboBox cb, IVF1<S> f) {
  addActionListener(cb, r {
    pcallF(f, selectedItem(cb))
  });
  ret cb;
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015920
Snippet name: onSelectedItem - for JComboBox
Eternal ID of this version: #1015920/4
Text MD5: 979ad98bdfbaf4b0b77ba098a60be898
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-11-04 02:29:24
Source code size: 303 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 435 / 485
Version history: 3 change(s)
Referenced in: [show references]