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

7
LINES

< > BotCompany Repo | #1033479 // setOpaqueBackground_recursive

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (4688L/26K).

1  
static <A extends JComponent> A setOpaqueBackground_recursive(Color color, A a) {
2  
  setOpaqueBackground(color, a);
3  
  for (Component c : getSwingChildren(a))
4  
    if (c cast JComponent)
5  
      setOpaqueBackground_recursive(color, c);
6  
  ret a;
7  
}

Author comment

Began life as a copy of #1006898

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033479
Snippet name: setOpaqueBackground_recursive
Eternal ID of this version: #1033479/4
Text MD5: a0c84b359b3e14d411efb3076e6848e1
Transpilation MD5: 4164b4748f7969ac2455fc1b1e89c001
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-10-29 03:00:59
Source code size: 247 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 144 / 209
Version history: 3 change(s)
Referenced in: [show references]