| Author |
set the background of a JPanel with an image
|
Peter Primrose
Ranch Hand
Joined: Sep 10, 2004
Posts: 755
|
|
condsider this: JPanel p = new JPanel(); p.setBackground(Color.GREEN); is there anyway to set the background to an image? I'm looking from some more living colors other than the spectrum provided by swing. thanks ppr
|
 |
Stuart Gray
Ranch Hand
Joined: Apr 21, 2005
Posts: 410
|
|
|
I don't think so, but you could maybe fudge it using an ImageIcon.
|
 |
miguel lisboa
Ranch Hand
Joined: Feb 08, 2004
Posts: 1281
|
|
|
|
java amateur
|
 |
 |
|
|
subject: set the background of a JPanel with an image
|
|
|