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

4
LINES

< > BotCompany Repo | #1020246 // jPreferredSizeToMinSize

JavaX fragment (include)

static <A extends Component> A jPreferredSizeToMinSize(final A c) {
  if (c != null) swing { jMinSize(c, c.getPreferredSize()); }
  ret c;
}

Author comment

Began life as a copy of #1019384

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020246
Snippet name: jPreferredSizeToMinSize
Eternal ID of this version: #1020246/4
Text MD5: 26120a93cb2b0632d53dd1daec13b5b7
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-11 18:14:15
Source code size: 143 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 246 / 290
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1020247 - jPreferredSizeToMinSizePlusY - layout fixer
#1031113 - jPreferredWidthToMaxWidth - limit component width to preferred