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

9
LINES

< > BotCompany Repo | #1004934 - jMinHeight

JavaX fragment (include)

static <A extends Component> A jMinHeight(A c, int h) {
  ret jMinHeight(h, c);
}

static <A extends Component> A jMinHeight(int h, A c) {
  Dimension size = c.getMinimumSize();
  c.setMinimumSize(new Dimension(size.width, max(h, size.height)));
  ret jPreferHeight(h, c);
}

Author comment

Began life as a copy of #1004496

download  show line numbers  debug dex   

Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

No comments. add comment

Snippet ID: #1004934
Snippet name: jMinHeight
Eternal ID of this version: #1004934/3
Text MD5: 0b2e5352d023899d881caa85213e814f
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:17:27
Source code size: 282 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 286 / 282
Version history: 2 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1004934 & http://1004934.tinybrain.de