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

8
LINES

< > BotCompany Repo | #1014546 // setBackground

JavaX fragment (include)

static <A extends JComponent> A setBackground(final Color color, final A a) {
  if (a != null) swing { a.setBackground(color); }
  ret a;
}

static <A extends JComponent> A setBackground(A a, Color color) {
  ret setBackground(color, a);
}

Author comment

Source made by #1014540 :)

Began life as a copy of #1007196

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: #1014546
Snippet name: setBackground
Eternal ID of this version: #1014546/4
Text MD5: 17fb77cbb596f011802a1be7e7fb1563
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-11 18:40:07
Source code size: 246 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 281 / 343
Version history: 3 change(s)
Referenced in: [show references]