1 | static JButton enableButton(JButton b) { |
2 | ret enableButton(b, true); |
3 | } |
4 | |
5 | static JButton enableButton(JButton b, bool enable) { |
6 | if (b != null) swing { b.setEnabled(enable); } |
7 | ret b; |
8 | } |
Began life as a copy of #1009388
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1009389 |
Snippet name: | enableButton |
Eternal ID of this version: | #1009389/4 |
Text MD5: | 07c6ed4956519bcbe245d296dc6153b2 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-02-29 14:38:40 |
Source code size: | 193 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 481 / 529 |
Version history: | 3 change(s) |
Referenced in: | [show references] |