static Runnable disableAllButtonsWhileCalcing(final Runnable r) { ret r { final JButton button = heldInstance(JButton); L<JButton> buttons = childrenOfType(JButton, (Component) getPossiblyInternalFrame(button); final L<JButton> enabledButtons = onlyEnabledComponents(buttons); disableButtons(enabledButtons); thread { try { callF(r); } finally { enableButtons(enabledButtons); } } }; }
Began life as a copy of #1016417
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1016443 |
| Snippet name: | disableAllButtonsWhileCalcing |
| Eternal ID of this version: | #1016443/4 |
| Text MD5: | b0e15f1219e8de3a8dd83b5d4bf7c590 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-06-28 21:54:35 |
| Source code size: | 461 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 566 / 615 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |