Transpiled version (2612L) is out of date.
static <A extends Component> A centerPackInternalFrameWithMinSize(int w, int h, A c) { ret centerPackInternalFrameWithMinSize(Pt(w, h), c); } static <A extends Component> A centerPackInternalFrameWithMinSize(Pt minSize, A c) { JInternalFrame win = getInternalFrame(c); if (win == null || getParent(win) == null) ret c; swing { win.pack(); if (minSize != null) minFrameSize(win, minSize.x, minSize.y); centerInternalFrame(win); fixInternalFrame(win); } ret c; } static <A extends Component> A centerPackInternalFrameWithMinSize(A c, Pt minSize) { ret centerPackInternalFrameWithMinSize(minSize, c); }
Began life as a copy of #1016270
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1026650 |
Snippet name: | centerPackInternalFrameWithMinSize |
Eternal ID of this version: | #1026650/4 |
Text MD5: | 4a43b0220d7e616fb96b8fb5fed745ee |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-01-18 16:27:23 |
Source code size: | 649 bytes / 19 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 228 / 306 |
Version history: | 3 change(s) |
Referenced in: | [show references] |