質問

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?

役に立ちましたか?

解決

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top