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

11
LINES

< > BotCompany Repo | #1006006 // jMinSize - set minimum size of Swing component

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (7908L/45K).

static <A extends Component> A jMinSize(int w, int h, A c) {
  ret jMinWidth(w, jMinHeight(h, c));
}

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

static <A extends Component> A jMinSize(A c, Dimension d) {
  ret jMinSize(d.width, d.height, c);
}

Author comment

Began life as a copy of #1005391

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1006006
Snippet name: jMinSize - set minimum size of Swing component
Eternal ID of this version: #1006006/6
Text MD5: f9058a16f396f3b1af8f97184f02ec11
Transpilation MD5: 184f8e671bd77d63c8aa662461c13ab9
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-04-15 05:10:18
Source code size: 300 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 589 / 669
Version history: 5 change(s)
Referenced in: [show references]