1 | static <A extends JComponent> A setOpaqueBackground(final Color color, final A a) {
|
2 | if (a != null) swing {
|
3 | a.setBackground(color); |
4 | a.setOpaque(true); |
5 | a.putClientProperty("substancelaf.colorizationFactor", 1.0);
|
6 | } |
7 | ret a; |
8 | } |
Began life as a copy of #1014546
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: | #1016134 |
| Snippet name: | setOpaqueBackground |
| Eternal ID of this version: | #1016134/3 |
| Text MD5: | d18c7c0599bf64afd402c39ab4041efc |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-06-06 19:51:43 |
| Source code size: | 246 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 853 / 926 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |