Transpiled version (12193L) is out of date.
1 | sclass JThumbnailButton > JToggleButton { |
2 | ThumbnailCache thumbnailCache; |
3 | gettable File imageFile; |
4 | |
5 | *(ThumbnailCache *thumbnailCache, File *imageFile) { |
6 | toolTip(this, fileInfo(imageFile)); |
7 | setButtonImage(this, whiteImage(thumbnailCache.thumbnailSize())); |
8 | thumbnailCache.get(imageFile, img -> { |
9 | setButtonImage(this, centerImageOnBackground(Color.gray, thumbnailCache.thumbnailSize(), img)); |
10 | }); |
11 | } |
12 | } |
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
Snippet ID: | #1035951 |
Snippet name: | JThumbnailButton |
Eternal ID of this version: | #1035951/6 |
Text MD5: | 94445e561d979460427850de8a3fcf91 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2022-08-17 19:45:42 |
Source code size: | 439 bytes / 12 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 133 / 198 |
Version history: | 5 change(s) |
Referenced in: | [show references] |