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 470 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).
![](../../users/profiles/515203.webp)
m4tx
- 3,974
- 4
- 33
- 60
1
JFrame haven't implemented Color, you can do that
1) JFrame#getContentpane.setBackground(Color c)
better would be
![](../../users/profiles/714968.webp)
mKorbel
- 108,320
- 17
- 126
- 296
-
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