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)

1  
static JComboBox onSelectedItem(final JComboBox cb, final VF1<S> f) {
2  
  addActionListener(cb, r {
3  
    pcallF(f, selectedItem(cb))
4  
  });
5  
  ret cb;
6  
}
7  
8  
static JComboBox onSelectedItem(final JComboBox cb, IVF1<S> f) {
9  
  addActionListener(cb, r {
10  
    pcallF(f, selectedItem(cb))
11  
  });
12  
  ret cb;
13  
}

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: 373 / 421
Version history: 3 change(s)
Referenced in: [show references]