1 | static <A extends Component> A jtransparent_recursive(A a) {
|
2 | if (a instanceof JPanel) {
|
3 | ((JPanel) a).setOpaque(false); |
4 | for (Component c : getSwingChildren(a)) |
5 | jtransparent_recursive(c); |
6 | } |
7 | ret a; |
8 | } |
Began life as a copy of #1006897
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: | #1006898 |
| Snippet name: | jtransparent_recursive - setOpaque(false) recursively for all JPanels |
| Eternal ID of this version: | #1006898/1 |
| Text MD5: | 45ceec6601b1f96d949d7ba5280490ad |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-02-14 18:28:27 |
| Source code size: | 223 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1101 / 1115 |
| Referenced in: | [show references] |