1 | static int getSelectedIndex(final JComboBox cb) { |
2 | ret cb == null ? -1 : swing(func -> int { cb.getSelectedIndex() }); |
3 | } |
4 | |
5 | static int getSelectedIndex(final JList l) { |
6 | ret l == null ? -1 : swing(func -> int { l.getSelectedIndex() }); |
7 | } |
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: | #1013491 |
Snippet name: | getSelectedIndex |
Eternal ID of this version: | #1013491/2 |
Text MD5: | 993eec8e646addb0cf6f48b4abf2ceae |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-22 19:55:44 |
Source code size: | 245 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 398 / 467 |
Version history: | 1 change(s) |
Referenced in: | [show references] |