Synth - setting background to JFrame

492 views Asked by At

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?

2

There are 2 answers

0
m4tx On BEST ANSWER

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).

2
mKorbel On

JFrame haven't implemented Color, you can do that

1) JFrame#getContentpane.setBackground(Color c)

better would be

2) JFrame#add(JPanel#setBackground(Color c))