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).

1  
static <A extends Component> A jMinSize(int w, int h, A c) {
2  
  ret jMinWidth(w, jMinHeight(h, c));
3  
}
4  
5  
static <A extends Component> A jMinSize(A c, int w, int h) {
6  
  ret jMinSize(w, h, c);
7  
}
8  
9  
static <A extends Component> A jMinSize(A c, Dimension d) {
10  
  ret jMinSize(d.width, d.height, c);
11  
}

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: 590 / 670
Version history: 5 change(s)
Referenced in: [show references]