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

7
LINES

< > BotCompany Repo | #1010378 // addToWindowSplitLeft (forces existing content to be smaller than minimum automatically)

JavaX fragment (include)

1  
static JSplitPane addToWindowSplitLeft(Component c, Component toAdd) {
2  
  ret addToWindowSplitLeft_f(c, toAdd, func(JComponent c) { jMinWidth_pure(100, c) });
3  
}
4  
5  
static JSplitPane addToWindowSplitLeft(Component c, Component toAdd, double splitRatio) {
6  
  ret setSplitPaneLater(addToWindowSplitLeft(c, toAdd), splitRatio);
7  
}

Author comment

Began life as a copy of #1009336

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1010378
Snippet name: addToWindowSplitLeft (forces existing content to be smaller than minimum automatically)
Eternal ID of this version: #1010378/3
Text MD5: 2092534b28a9c6e4675db440ee06e746
Author: stefan
Category: javax / gui
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-09-13 17:12:46
Source code size: 327 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 567 / 591
Version history: 2 change(s)
Referenced in: [show references]