0

当我创建 JSplitPane 和 JMenu 时:

JSplitPane pane = new JSplitPane();
pane.setLeftComponent(new SidePanel()); // extends JPanel
pane.setRightComponent(new LibraryPanel()); // extends JPanel

add(pane);

JMenuBar menuBar = new JMenuBar();
// Creating menuBar
setJMenuBar(menuBar);

调整 JSplitPane 的大小后,JMenuBar 组件中的 JMenu 正在 JPanel 元素下绘制。怎么修?

4

1 回答 1

0

Solved. There was my typo :) And instead correct "JLabel" there was "Label". Sorry. Check your code :) Cause, I already wrote my own Split Panel :)

Thanks for help!

于 2011-04-03T15:48:34.487 回答