Libraryless. Click here for Pure Java version (6983L/39K).
static void setFrameOrWindowContents(Component c, JComponent contents) { var w = getWindow(c); if (w cast JWindow) setWindowContents(w, contents); else if (w cast JFrame) setFrameContents(w, contents); }
Began life as a copy of #1003379
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034453 |
| Snippet name: | setFrameOrWindowContents |
| Eternal ID of this version: | #1034453/1 |
| Text MD5: | e2e724fa1b0db7485b8accf1f932d221 |
| Transpilation MD5: | 393dae06686aa0fe4621fa80a6e74415 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-02-08 00:45:35 |
| Source code size: | 223 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 423 / 517 |
| Referenced in: | [show references] |