Search code examples
javaseparatorjmenubar

Java, separator between JMenuBar and other components


in Java Swing how can I change the color of the separator between JMenuBar and other components. Alternatively I would like to remove the separator.


Solution

  • AFAIU:

    jMenuBar.setBorder(BorderFactory.createLineBorder(Color.black));