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

27
LINES

< > BotCompany Repo | #1001669 // File size watcher (big text)

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

Libraryless. Click here for Pure Java version (1252L/9K/28K).

1  
!747
2  
!1000805 // awt
3  
!image classes
4  
5  
m {
6  
  !include #1001425 // ShowBigText
7  
  
8  
  static int delay = 50;
9  
  static S path = "/home/stefan/Desktop/Berserk! One of the longest chess videos on Youtube! Kingscrusher's Autumn blitz Marathon - YouTube [360p].mp4";
10  
  static volatile long size;
11  
  static volatile S text;
12  
  
13  
  p {
14  
    new ShowBigText sbt;
15  
    
16  
    while (true) {
17  
      size = getFileSize(path);
18  
      sbt.title = "File Size";
19  
      S newText = toK(size) + " KB";
20  
      if (!eq(text, newText)) {
21  
        text = newText;
22  
        sbt.showText(text);
23  
      }
24  
      sleep(delay);
25  
    }
26  
  }
27  
}

Author comment

Began life as a copy of #1001652

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1001669
Snippet name: File size watcher (big text)
Eternal ID of this version: #1001669/1
Text MD5: d039bcc0a45ae0cbfa61dfb3cf60d941
Transpilation MD5: 0255bdbe9307b4447040946d92b7f306
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-11-01 17:51:30
Source code size: 619 bytes / 27 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 482 / 550
Referenced in: [show references]