Transpiled version (5165L) is out of date.
svoid onSelectionChanged(JList list, VF1<S> f) { onSelectionChanged(list, toIVF1(f)); } svoid onSelectionChanged(JList list, IVF1<S> f) { if (list != null && f != null) swing { list.addListSelectionListener(new ListSelectionListener { public void valueChanged(ListSelectionEvent e) { pcallF(f, getSelectedItem(list)); } }); } }
Began life as a copy of #1005360
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1015283 |
| Snippet name: | onSelectionChanged - for JList |
| Eternal ID of this version: | #1015283/7 |
| Text MD5: | c3f747e0d89471a303e64e36fdea2de5 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-02-20 20:10:21 |
| Source code size: | 374 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 699 / 843 |
| Version history: | 6 change(s) |
| Referenced in: | [show references] |