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

13
LINES

< > BotCompany Repo | #1009808 // setEnabled

JavaX fragment (include) [tags: use-pretranspiled]

Transpiled version (2012L) is out of date.

static <A extends JComponent> A setEnabled(A c, bool enable) {
  if (c != null) swing { c.setEnabled(enable); }
  ret c;
}

static <A extends JComponent> A setEnabled(bool enable, A c) {
  ret setEnabled(c, enable);
}

svoid setEnabled(bool enable, JComponent... l) {
  fOr (c : l)
    setEnabled(c, enable);
}

Author comment

Began life as a copy of #1009389

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: #1009808
Snippet name: setEnabled
Eternal ID of this version: #1009808/5
Text MD5: c8ee83c49acbcbcd6dd5da18307d7231
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-02-28 17:15:42
Source code size: 322 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 596 / 732
Version history: 4 change(s)
Referenced in: [show references]