Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1033817 // maximizeOrRestoreFrame - better in non-AWT thread (so it can wait for the maximization)

JavaX fragment (include) [tags: use-pretranspiled]

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);
}

Author comment

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: 81 / 137
Version history: 3 change(s)
Referenced in: [show references]