1 | static <A extends JComponent> A jBackground(final Color color, final A a) { |
2 | swing { |
3 | jtransparent_recursive(a); |
4 | a.setOpaque(true); |
5 | a.setBackground(color); |
6 | a.putClientProperty("substancelaf.colorizationFactor", 1.0); |
7 | } |
8 | ret a; |
9 | } |
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: | #1007788 |
Snippet name: | jBackground - set single color background for whole panel |
Eternal ID of this version: | #1007788/5 |
Text MD5: | 31d9cbc596df7027f45ceb12a597eb33 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-06-02 21:37:44 |
Source code size: | 255 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 582 / 602 |
Version history: | 4 change(s) |
Referenced in: | [show references] |