Libraryless. Click here for Pure Java version (6983L/39K).
1 | static void setFrameOrWindowContents(Component c, JComponent contents) {
|
2 | var w = getWindow(c); |
3 | if (w cast JWindow) |
4 | setWindowContents(w, contents); |
5 | else if (w cast JFrame) |
6 | setFrameContents(w, contents); |
7 | } |
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: | 426 / 520 |
| Referenced in: | [show references] |