jtoolbar专题

将JMenuBar与JToolbar放到JPanel中

系统有很多jPanel,每个Jpanel都有不同的JMenubar,为将JMenuBar与JToolbar放到JPanel中可采用如下方法: public class BasicGraphEditor extends JPanel...protected void installToolAndMenuBar() {JPanel jp = new JPanel();jp.setLayout