setMargin(Insets)
// Menue zufügenJMenuBar menuebar = new JMenuBar();menuebar.add(createDateiMenue()); menuebar.add(createOptionMenue()); menuebar.setBorderPainted(false); menuebar.setMargin(new Insets(50,30,50,30)); //Insets(int top, int left, int bottom, int right) setJMenuBar(menuebar);