看看这张照片:
似乎我的绿色箭头按钮使JMenuBar
比应有的高,请注意其余按钮上方和下方的空间。我怎么阻止它这样做?我已尽量使JButton
边框/填充尽可能小,这是我的代码:
JButton runFlow;
runFlow = new JButton(IconHandler.getIcon(IconHandler.RUN_ICON));
runFlow.setOpaque(false);
runFlow.setContentAreaFilled(false);
runFlow.setBorder(null);
runFlow.setBorderPainted(false);
runFlow.setMargin(new java.awt.Insets(0,0,0,0));
是否与菜单栏格式有关?