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

6
LINES

< > BotCompany Repo | #1019385 // setPreferredSize

JavaX fragment (include)

static <A extends Component> A setPreferredSize(final A c, final int w, final int h) {
  if (c != null) swing {
    c.setPreferredSize(new Dimension(w, h));
  }
  ret c;
}

Author comment

Began life as a copy of #1016730

download  show line numbers  debug dex  old transpilations   

Travelled to 12 computer(s): bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1019385
Snippet name: setPreferredSize
Eternal ID of this version: #1019385/1
Text MD5: d84fab42555e5d6a875915a19aa63f82
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-11-04 18:35:33
Source code size: 176 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 307 / 343
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)