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

9
LINES

< > BotCompany Repo | #1003667 // hideFrameOnMinimize

JavaX fragment (include)

static void hideFrameOnMinimize(final JFrame f) {
  if (f != null) swing {
    f.addWindowListener(new WindowAdapter {
      public void windowIconified(WindowEvent we) {
        f.setVisible(false);
      }
    });
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 16 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003667
Snippet name: hideFrameOnMinimize
Eternal ID of this version: #1003667/2
Text MD5: 9cdee255426dc39cabca788998e895de
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-27 18:51:14
Source code size: 229 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 616 / 634
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)