1 | static JWindow showCenterPackedWindow(Component c) {
|
2 | ret swing(() -> {
|
3 | new JWindow w; |
4 | w.add(c); |
5 | w.pack(); |
6 | centerWindow(w); |
7 | w.setVisible(true); |
8 | ret w; |
9 | }); |
10 | } |
Began life as a copy of #1003547
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1024924 |
| Snippet name: | showCenterPackedWindow |
| Eternal ID of this version: | #1024924/1 |
| Text MD5: | 141d3f8547d0a79a57854448e61eaa8f |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-08-30 12:53:30 |
| Source code size: | 192 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 461 / 521 |
| Referenced in: | [show references] |