I’m generating a maze by removing edges from a node’s neighbor. By removal, I meant to draw the removing edge as the original color of the panel. I currently have to set it to Color.white but it looks odd. So does anyone know the hexa code of background color in Java Swing?

The original background colour is RGB(238,238,238) or Hex EEEEEE
Edit: As @GuillaumePolet pointed out, this may not be the case for all platforms – so the safest way to get it is when you first create your
JPanelusing code such as the following:This is how I got 238,238,238 and I’m using Windows on Java 1.7