Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1009388 // disableButton

JavaX fragment (include)

static JButton disableButton(final JButton b) {
  if (b != null) swing { b.setEnabled(false); }
  ret b;
}

static void disableButton() {
  disableButton(heldInstance(JButton.class));
}

Author comment

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: 517 / 566
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1009389 - enableButton
#1015078 - setDisabled - synonym of disableButton
#1016305 - tempDisableButton
#1016444 - disableButtons
#1021509 - disableMenuItem