Libraryless. Click here for Pure Java version (3002L/17K).
1 | static <A extends Component> A centerFrameWithMinWidth(A c) { |
2 | JFrame f = getFrame(c); |
3 | if (f != null) |
4 | centerFrameWithWidth(getMinimumWidth(f), f); |
5 | ret c; |
6 | } |
Began life as a copy of #1015038
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1031180 |
Snippet name: | centerFrameWithMinWidth |
Eternal ID of this version: | #1031180/3 |
Text MD5: | 954ca8743934c8017028c00a48044150 |
Transpilation MD5: | 5239741e23bd895d94667661c070909b |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2021-05-19 18:18:53 |
Source code size: | 169 bytes / 6 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 216 / 265 |
Version history: | 2 change(s) |
Referenced in: | [show references] |