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

11
LINES

< > BotCompany Repo | #1016365 // minInternalFrameWidth

JavaX fragment (include)

static JInternalFrame minInternalFrameWidth(final JInternalFrame frame, final int w) {
  swing {
    if (frame != null && frame.getWidth() < w)
      frame.setSize(w, frame.getHeight());
  }
  ret frame;
}

static JInternalFrame minInternalFrameWidth(int w, JInternalFrame frame) {
  ret minInternalFrameWidth(frame, w);
}

Author comment

Began life as a copy of #1004439

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1016365
Snippet name: minInternalFrameWidth
Eternal ID of this version: #1016365/1
Text MD5: 827a7c91a943ccf74a940c412fcc9d7b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-16 16:06:05
Source code size: 334 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 341 / 377
Referenced in: [show references]