Libraryless. Click here for Pure Java version (4693L/31K).
// delay := delay in seconds static JDesktopPane jDesktopPaneWithFitPicture_smooth_cacheScaled_loadLater(fS imageID, O... _) { final DesktopPaneWithFitPicture_smooth_cacheScaled desktop = swingNu(DesktopPaneWithFitPicture_smooth_cacheScaled); thread "Load Background" { sleepSeconds(optPar delay(_, 0.0)); time "Load Background in Background" { BufferedImage img = loadImage2(imageID); } desktop.setImage(img); } ret desktop; }
Began life as a copy of #1019469
download show line numbers debug dex old transpilations
Travelled to 10 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1019846 |
Snippet name: | jDesktopPaneWithFitPicture_smooth_cacheScaled_loadLater |
Eternal ID of this version: | #1019846/6 |
Text MD5: | 95bc0222f59ae017b05f4c71dd349bf6 |
Transpilation MD5: | 90c88ccb142023ff81d4fce19eb6739b |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-01-18 16:29:36 |
Source code size: | 468 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 321 / 427 |
Version history: | 5 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |