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

8
LINES

< > BotCompany Repo | #1009389 // enableButton

JavaX fragment (include)

static JButton enableButton(JButton b) {
  ret enableButton(b, true);
}

static JButton enableButton(JButton b, bool enable) {
  if (b != null) swing { b.setEnabled(enable); }
  ret b;
}

Author comment

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: 479 / 527
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1009808 - setEnabled