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

10
LINES

< > BotCompany Repo | #1015452 // makeUnimportantWindow - make and mark as "unimportant" (not keeping the VM up)

JavaX fragment (include)

1  
static JWindow makeUnimportantWindow(final Component c) {
2  
  ret swing(func -> JWindow {
3  
    Map map = cast vm_generalMap_get("unimportant windows");
4  
    if (map == null)
5  
      vm_generalMap_put("unimportant windows", map = (Map) callJavaX('newWeakHashMap));
6  
    JWindow w = makeWindow(c);
7  
    map.put(w, true);
8  
    ret w;
9  
  });
10  
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1015452
Snippet name: makeUnimportantWindow - make and mark as "unimportant" (not keeping the VM up)
Eternal ID of this version: #1015452/5
Text MD5: e102ead643d367d2568154d33d848b9d
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-05-15 15:00:55
Source code size: 338 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 349 / 390
Version history: 4 change(s)
Referenced in: [show references]