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

4
LINES

< > BotCompany Repo | #1019511 // minimalFrameSize - adjust size once only. works for JInternalFrame too

JavaX fragment (include)

svoid minimalFrameSize(Component c, int w, int h) {
  Container f = getPIFrame(c);
  if (f != null) setSize(f, max(w, getWidth(f)), max(h, getHeight(f)));
}

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: #1019511
Snippet name: minimalFrameSize - adjust size once only. works for JInternalFrame too
Eternal ID of this version: #1019511/3
Text MD5: 81cbcbae56604dd7d988068e3eb92ff9
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-01-18 16:23:00
Source code size: 159 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 334 / 394
Version history: 2 change(s)
Referenced in: [show references]