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


< > 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  old transpilations   

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

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: 372 / 383
Version history: 2 change(s)
Referenced in: [show references]