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

17
LINES

< > BotCompany Repo | #1008240 // Try to force memory leak with HTML-styled JLabel

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (5731L/39K/134K).

1  
!7
2  
3  
static JLabel label;
4  
5  
p {
6  
  swing {
7  
    showFrame(jscroll(label = jcenteredlabel()));
8  
    label.setFont(sansSerif(40));
9  
  }
10  
  awtEvery(label, 1000*30, f printCachedPainterSize);
11  
  while licensed {
12  
    swing {
13  
      label.setText(hhtml(randomID()));
14  
    }
15  
    sleep(1);
16  
  }
17  
}

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: #1008240
Snippet name: Try to force memory leak with HTML-styled JLabel
Eternal ID of this version: #1008240/5
Text MD5: e3ff439a7e84cc631f433fc7c4495d96
Transpilation MD5: 8820b4a5b6bbb45b61e30fd1ceb0a1a2
Author: stefan
Category: javax / gui
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-05-02 04:38:19
Source code size: 294 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 513 / 595
Version history: 4 change(s)
Referenced in: [show references]