1 | static void enableSubmitButton(Component form) { |
2 | enableSubmitButton(form, true); |
3 | } |
4 | |
5 | static void enableSubmitButton(final Component form, final bool enable) { |
6 | swing { |
7 | JButton btn = findSubmitButton(form); |
8 | if (btn != null) btn.setEnabled(enable); |
9 | } |
10 | } |
Began life as a copy of #1007315
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: | #1007318 |
Snippet name: | enableSubmitButton - enable button called "Submit" (default text in showForm) |
Eternal ID of this version: | #1007318/4 |
Text MD5: | 0c6e75b70e6e3c0f3de9c8ea7422d41b |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-03-15 03:01:18 |
Source code size: | 273 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 620 / 653 |
Version history: | 3 change(s) |
Referenced in: | [show references] |