1 | static <A extends JComponent> A setBackground(final Color color, final A a) { |
2 | if (a != null) swing { a.setBackground(color); } |
3 | ret a; |
4 | } |
5 | |
6 | static <A extends JComponent> A setBackground(A a, Color color) { |
7 | ret setBackground(color, a); |
8 | } |
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: | 425 / 500 |
Version history: | 3 change(s) |
Referenced in: | [show references] |