static S getSelectedItem(JList l) { ret (S) l.getSelectedValue(); } static S getSelectedItem(JComboBox cb) { ret strOrNull(cb.getSelectedItem()); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004939 |
Snippet name: | getSelectedItem - for JList/JComboBox |
Eternal ID of this version: | #1004939/3 |
Text MD5: | 1fe06fd5f354f7ef177f277db66edf1a |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-09-25 01:47:03 |
Source code size: | 158 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 564 / 835 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1014374 - selectedListItems #1015216 - selectedItem - synonym of getSelectedItem - for JList/JComboBox #1030813 - getSelectedItem_typed - for JList/JComboBox |