开发者

Swing Toolbar placement

开发者 https://www.devze.com 2022-12-11 00:41 出处:网络
I want to display a JToolbar within right side of a split pane, which is also going to contain a JTabbedPane, how ca开发者_StackOverflow中文版n we do that ? wrap TabbedPane and toolbar in some compone

I want to display a JToolbar within right side of a split pane, which is also going to contain a JTabbedPane, how ca开发者_StackOverflow中文版n we do that ? wrap TabbedPane and toolbar in some component? ps: user should not be able to minimize, etc in right side pane...


Put a JPanel on the right side of the split pane.

Give the JPanel a BorderLayout.

Add the JToolbar to the NORTH of the JPanel, and the JTabbedPane to the CENTER.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号