I'm creating an app in Java using Swing and Synth. I want to set image background to JFrame using Synth. How to do it?
Asked
Active
Viewed 481 times
2 Answers
1
There weren't better solution, so I decided to draw the background directly on the JFrame using Java2D (although I don't have the code now).

m4tx
- 4,139
- 5
- 37
- 61
1
JFrame haven't implemented Color, you can do that
1) JFrame#getContentpane.setBackground(Color c)
better would be

mKorbel
- 109,525
- 20
- 134
- 319
-
No no no... I want to set background using Synth, not pure Swing. Btw., I forgot to add that I want image background. But thanks for help. – m4tx Jan 17 '12 at 05:11
-
1Although it's not L&F specific, maybe something like [this](http://stackoverflow.com/a/5129757/230513)? – trashgod Jan 20 '12 at 04:15