Question

I'm using a LAF (Look and Feel) with Substance. It's perfect, except for JOptionPane.showMessageDialog.

I want it to inherit the LAF's appearance, it gets its custom background from Windows, but not for the bar (at the corner, where you see the closing "X").

Is it that LAF doesn't have a defined style for JOptionPane? Or it's possible to extend it?

Was it helpful?

Solution

It has been a while since I used it, but I'm almost sure if you follow the examples in Substance look and feel's docs you'll get your JOptionPane fully styled.

Search for JOptionPane.showMessageDialog in the page and you'll see its use on INFORMATION/ERROR/WARNING/QUESTION_MESSAGE.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top