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

10
LINES

< > BotCompany Repo | #1003461 // setFrameWidth

JavaX fragment (include)

static <A extends Component> A setFrameWidth(int w, A c) {
  ret setFrameWidth(c, w);
}

static <A extends Component> A setFrameWidth(A c, int w) {
  JFrame f = getFrame(c);
  if (f != null)
    f.setSize(w, f.getHeight());
  ret c;
}

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: #1003461
Snippet name: setFrameWidth
Eternal ID of this version: #1003461/4
Text MD5: 4748edacb9d898383f15062e75ecca37
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-07-02 17:09:09
Source code size: 243 bytes / 10 lines
Pitched / IR pitched: No / No
Views / Downloads: 677 / 809
Version history: 3 change(s)
Referenced in: #1004439 - minFrameWidth
#1004941 - setFrameHeight
#1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1008702 - setFrameSize