1 | static void setWindowContents(final Component c, fO contents) {
|
2 | swing {
|
3 | JWindow w = cast getWindow(c); |
4 | w.getContentPane().removeAll(); |
5 | w.getContentPane().setLayout(new BorderLayout); |
6 | w.getContentPane().add(wrap(contents)); |
7 | revalidate(w); |
8 | } |
9 | } |
Began life as a copy of #1003379
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: | #1012853 |
| Snippet name: | setWindowContents |
| Eternal ID of this version: | #1012853/2 |
| Text MD5: | 0380da1825cdb0de29ab4b26d85842d8 |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-12-14 19:26:08 |
| Source code size: | 273 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 566 / 595 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |