multisplitpane

Swing layout manager/solution to replace dynamically created and nested split panes?

萝らか妹 提交于 2020-01-05 07:38:08
问题 I'm working on a text editor in which the user is free to divide the editor window vertically or horizontally any number of times (ie, into any number of panes). A single window can be divided both vertically and horizontally (for example, 2 rows, one which contains 3 columns, etc). Each pane contains a JTextArea inside a JScrollPane and a status bar. My approach thus far has been to use nested JSplitPanes. I've struggled to arrange the split pane dividers so that the space in the window is

Swing layout manager/solution to replace dynamically created and nested split panes?

本小妞迷上赌 提交于 2020-01-05 07:36:33
问题 I'm working on a text editor in which the user is free to divide the editor window vertically or horizontally any number of times (ie, into any number of panes). A single window can be divided both vertically and horizontally (for example, 2 rows, one which contains 3 columns, etc). Each pane contains a JTextArea inside a JScrollPane and a status bar. My approach thus far has been to use nested JSplitPanes. I've struggled to arrange the split pane dividers so that the space in the window is