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

14
LINES

< > BotCompany Repo | #1018400 // packInternalFrameVertically_noFix

JavaX fragment (include)

static <A extends Component> A packInternalFrameVertically_noFix(A c) {
  ret packInternalFrameVertically_noFix(-1, c);
}

static <A extends Component> A packInternalFrameVertically_noFix(int width, A c) {
  final JInternalFrame win = getInternalFrame(c);
  if (win == null) ret c;
  final int w = width < 0 ? win.getWidth() : width;
  swing {
    win.pack();
    win.setSize(w, win.getHeight());
  }
  ret c;
}

Author comment

Began life as a copy of #1015796

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1018400
Snippet name: packInternalFrameVertically_noFix
Eternal ID of this version: #1018400/1
Text MD5: ab8d437b19bf486aa8cefdd1ea047d73
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-09-26 12:10:11
Source code size: 424 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 229 / 275
Referenced in: [show references]