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

8
LINES

< > BotCompany Repo | #1006898 // jtransparent_recursive - setOpaque(false) recursively for all JPanels

JavaX fragment (include)

static <A extends Component> A jtransparent_recursive(A a) {
  if (a instanceof JPanel) {
    ((JPanel) a).setOpaque(false);
    for (Component c : getSwingChildren(a))
      jtransparent_recursive(c);
  }
  ret a;
}

Author comment

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: 461 / 493
Referenced in: [show references]