title: Java, JMenuBar, JMenuItem
body: <p>Currently, I'm working on a small program in JAVA. I am using JMenuBar with JMenuItem to display various options for users. But ass you can see in screenshot JMenuItem list has top and bottom borders painted in grey colour. </p>
  
  <p>My Problem is that I would like it to be in black colour to match JMenuBar and JMenuItem background colours but I cannot find a way to do it. </p>
  
  <p>Here is a piece of code for this GUI part. </p>
  
  <pre><code>// build the MenuBar menus
      EmployeeMenu = new JMenu("Employee");
      EmployeeMenu.setForeground(Color.white);
      EmployeeMenu.setFont(new Font("Arial", 9, 20));
      EmployeeMenu.setBorderPainted(false);
      EmployeeMenu.setOpaque(false);
  
      newEmployeeMenuItem = new JMenuItem("Add new");
      newEmployeeMenuItem.setBackground(Color.black);
      newEmployeeMenuItem.setForeground(Color.white);
      newEmployeeMenuItem.addActionListener(this);
      newEmployeeMenuItem.setBorderPainted(false);
  
      DeleteEmployeeMenuItem = new JMenuItem("Delete");
      DeleteEmployeeMenuItem.addActionListener(this);
      DeleteEmployeeMenuItem.setBackground(Color.black);
      DeleteEmployeeMenuItem.setForeground(Color.white);
      DeleteEmployeeMenuItem.setBorderPainted(false);
  </code></pre>
  
  <p>And a ScreenShot of output is here.</p>
  
  <p><a href="https://i.stack.imgur.com/6SYiA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6SYiA.png" alt="Just an Image"></a></p>
  
  <p>Also, how can I repaint selected item from MenuBar? (Right now it's on default (LightBlue) but it does not match with the black background colour. </p>
  
  <p>Any help appreciated and a
  Huge <strong>thank you</strong> in advance!</p>