1 | static JButton disableButton(final JButton b) { |
2 | if (b != null) swing { b.setEnabled(false); } |
3 | ret b; |
4 | } |
5 | |
6 | static void disableButton() { |
7 | disableButton(heldInstance(JButton.class)); |
8 | } |
Began life as a copy of #1008618
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: | #1009388 |
Snippet name: | disableButton |
Eternal ID of this version: | #1009388/6 |
Text MD5: | 3539b86b4c9fe8dbb38cc0792e82766b |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-05-07 21:48:40 |
Source code size: | 192 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 518 / 567 |
Version history: | 5 change(s) |
Referenced in: | [show references] |