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).

!7

static DynamicVStack buttons;
static ButtonImageLoader imageLoader;
//set flag WeakIdentityHashMap_debug.

p-noconsole-autoupdate {
  buttons = showNiceVerticalButtons();
  imageLoader = new ButtonImageLoader(buttons);
  refresh();
  addButtonsToWindow(buttons, "Refresh", f-thread refresh);
}

svoid refresh {
  if (replaceNiceButtons(buttons,
    filesForNiceButtons(sortFilesByDate(listPNGFiles(userDesktopDir())), f showImage)))
    centerPackFrame(buttons);
  imageLoader.update();
}

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: 389 / 1090
Version history: 34 change(s)
Referenced in: [show references]