jxmultisplitpane

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

jxmultisplitpane: how to use?

Deadly 提交于 2019-12-12 17:12:35
问题 I found a javadoc for JXMultiSplitPane but I'm clueless. How would I use this to display 5 JPanels lined up horizontally with splitters in between? 回答1: It doesn't answer your question exactly but I hope it is helpful. Please check out this piece of code. The code was taken from the swinglabs presentation from 2007. It takes a while to load so be patient. //Simple case: creates a split pane with three //compartments JXMultiSplitPane sp = new JXMultiSplitPane(); sp.setModel(new