1 | static void onEnterIfTextField(Component c, Runnable action) { |
2 | if (action == null) ret; |
3 | if (c cast JTextField) |
4 | onEnter(c, action); |
5 | else if (c cast JComboBox) |
6 | onEnter(c, action); |
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: | #1015542 |
Snippet name: | onEnterIfTextField (or combo box) |
Eternal ID of this version: | #1015542/5 |
Text MD5: | c8b499d9aadaa985d58e4a10d4676e1c |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-01 00:44:08 |
Source code size: | 199 bytes / 7 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 433 / 484 |
Version history: | 4 change(s) |
Referenced in: | [show references] |