Libraryless. Click here for Pure Java version (4838L/27K).
1 | svoid maximizeOrRestoreFrame(JFrame f) { |
2 | if (f == null) ret; |
3 | //if (isMaximized(f)) |
4 | if (!isExtendedStateNormal(f)) |
5 | swing { f.setExtendedState(JFrame.NORMAL); } |
6 | else |
7 | maximizeFrame(f); |
8 | } |
Began life as a copy of #1003516
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
Snippet ID: | #1033817 |
Snippet name: | maximizeOrRestoreFrame - better in non-AWT thread (so it can wait for the maximization) |
Eternal ID of this version: | #1033817/4 |
Text MD5: | bb4b28647b9c8a26ec2443a73e2b3ce2 |
Transpilation MD5: | 5eee648df9272cb3b6e9c8d34b5e82b0 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-01-05 06:59:10 |
Source code size: | 208 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 143 / 220 |
Version history: | 3 change(s) |
Referenced in: | [show references] |