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

7
LINES

< > BotCompany Repo | #1014946 // addToWindowPack_keepWidth

JavaX fragment (include)

static Window addToWindowPack_keepWidth(Component c, Component toAdd) {
  Window win = getWindow(c);
  int w = win.getWidth();
  addToWindowAndPack(win, toAdd);
  win.setSize(w, win.getHeight());
  ret win;
}

Author comment

Began life as a copy of #1006956

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1014946
Snippet name: addToWindowPack_keepWidth
Eternal ID of this version: #1014946/6
Text MD5: c00b67e6cef6adeaef74db66da02c86a
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-06 17:13:56
Source code size: 214 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 403 / 430
Version history: 5 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1015218 - packWindowVertically - keeps width