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

19
LINES

< > BotCompany Repo | #1015364 // All desktop PNG files as vertical buttons (OK)

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

Download Jar. Uses 3874K of libraries. Click here for Pure Java version (10985L/79K).

1  
!7
2  
3  
static DynamicVStack buttons;
4  
static ButtonImageLoader imageLoader;
5  
//set flag WeakIdentityHashMap_debug.
6  
7  
p-noconsole-autoupdate {
8  
  buttons = showNiceVerticalButtons();
9  
  imageLoader = new ButtonImageLoader(buttons);
10  
  refresh();
11  
  addButtonsToWindow(buttons, "Refresh", f-thread refresh);
12  
}
13  
14  
svoid refresh {
15  
  if (replaceNiceButtons(buttons,
16  
    filesForNiceButtons(sortFilesByDate(listPNGFiles(userDesktopDir())), f showImage)))
17  
    centerPackFrame(buttons);
18  
  imageLoader.update();
19  
}

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: #1015364
Snippet name: All desktop PNG files as vertical buttons (OK)
Eternal ID of this version: #1015364/35
Text MD5: 8b37fd3120e7f0fa2132bd06b4034ef4
Transpilation MD5: a1364e666179c514b522fb4936dff53b
Author: stefan
Category: javax / gui
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-13 15:54:32
Source code size: 510 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 400 / 1111
Version history: 34 change(s)
Referenced in: [show references]