Libraryless. Click here for Pure Java version (4838L/27K).
svoid maximizeOrRestoreFrame(JFrame f) { if (f == null) ret; //if (isMaximized(f)) if (!isExtendedStateNormal(f)) swing { f.setExtendedState(JFrame.NORMAL); } else maximizeFrame(f); }
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: | 141 / 217 |
Version history: | 3 change(s) |
Referenced in: | [show references] |