Libraryless. Click here for Pure Java version (4775L/27K).
static <A extends Component> A centerFrame_oldMethod(A c) { Window w = getWindow(c); if (w != null) w.setLocationRelativeTo(null); // magic trick ret c; } static <A extends Component> A centerFrame_oldMethod(int w, int h, A c) { ret centerFrame_oldMethod(setFrameSize(w, h, c)); }
Began life as a copy of #1001308
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1034098 |
| Snippet name: | centerFrame_oldMethod |
| Eternal ID of this version: | #1034098/1 |
| Text MD5: | 903a31f273e692fd3801cac99e5f8f19 |
| Transpilation MD5: | 2683d1fb6d685b7f1df2e297e7501eaa |
| Author: | stefan |
| Category: | javax / gui |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-01-21 20:22:23 |
| Source code size: | 304 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 304 / 397 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |