Transpiled version (2012L) is out of date.
1 | static <A extends JComponent> A setEnabled(A c, bool enable) { |
2 | if (c != null) swing { c.setEnabled(enable); } |
3 | ret c; |
4 | } |
5 | |
6 | static <A extends JComponent> A setEnabled(bool enable, A c) { |
7 | ret setEnabled(c, enable); |
8 | } |
9 | |
10 | svoid setEnabled(bool enable, JComponent... l) { |
11 | fOr (c : l) |
12 | setEnabled(c, enable); |
13 | } |
Began life as a copy of #1009389
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: | #1009808 |
Snippet name: | setEnabled |
Eternal ID of this version: | #1009808/5 |
Text MD5: | c8ee83c49acbcbcd6dd5da18307d7231 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-02-28 17:15:42 |
Source code size: | 322 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 598 / 735 |
Version history: | 4 change(s) |
Referenced in: | [show references] |