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


< > BotCompany Repo | #1033904 // jimageButtonScaledToWidth - for non-animated only (uses smooth scaling)

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (7643L/45K).

static JButton jimageButtonScaledToWidth(int w, S imageID, S toolTip default "", Runnable action) {
  ret jimageButton(scaleImageToWidth(w, imageID), toolTip, action);

Author comment

Began life as a copy of #1006831

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1033904
Snippet name: jimageButtonScaledToWidth - for non-animated only (uses smooth scaling)
Eternal ID of this version: #1033904/4
Text MD5: 5663d9818d775fa39f9da7bb2a3a391e
Transpilation MD5: 079c0ff62c2776a1e3b3295e98304a2d
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-01-09 19:46:01
Source code size: 171 bytes / 3 lines
Pitched / IR pitched: No / No
Views / Downloads: 68 / 112
Version history: 3 change(s)
Referenced in: [show references]