JList Background Color
<p>I am creating a simple image browser. I am using a <code>JList</code> with wrapping: </p>

<p><code>assetList.setLayoutOrientation(JList.HORIZONTAL_WRAP);
assetList.setVisibleRowCount(-1);</code></p>

<p>But I want to make the empty space dark. I tried sub-classing <code>JList</code> and having the <code>paintComponent</code> method change the background color, but it doesn't seem to work, it just keeps adding white to empty space.</p>

<p><a href="https://i.stack.imgur.com/Z6RzL.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z6RzL.jpg" alt="Image Browser"></a></p>