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

6
LINES

< > BotCompany Repo | #1020247 // jPreferredSizeToMinSizePlusY - layout fixer

JavaX fragment (include)

static <A extends Component> A jPreferredSizeToMinSizePlusY(final int y, final A c) {
  if (c != null) swing {
    Dimension d = c.getPreferredSize();
    jMinSize(d.width, d.height+y, c); }
  ret c;
}

Author comment

Began life as a copy of #1020246

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: #1020247
Snippet name: jPreferredSizeToMinSizePlusY - layout fixer
Eternal ID of this version: #1020247/1
Text MD5: 31ea22a61095b514b8835ac1fa83685d
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:22:48
Source code size: 206 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 243 / 279
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)