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

6
LINES

< > BotCompany Repo | #1019385 // setPreferredSize

JavaX fragment (include)

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

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: 306 / 342
Referenced in: [show references]