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

7
LINES

< > TinyBrain | #1010378 - addToWindowSplitLeft (forces existing content to be smaller than minimum automatically)

JavaX fragment (include)

static JSplitPane addToWindowSplitLeft(Component c, Component toAdd) {
  ret addToWindowSplitLeft_f(c, toAdd, func(JComponent c) { jMinWidth_pure(100, c) });
}

static JSplitPane addToWindowSplitLeft(Component c, Component toAdd, double splitRatio) {
  ret setSplitPaneLater(addToWindowSplitLeft(c, toAdd), splitRatio);
}

Author comment

Began life as a copy of #1009336

download  show line numbers  debug dex   

Travelled to 2 computer(s): cfunsshuasjs, tvejysmllsmz

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: 20 / 30
Version history: 2 change(s)
Referenced in: [show]