displaying background image

1 reply [Last post]
Offline
Joined: 04/02/2013

I had made a splash screen method but the problem is background is black how can i add background pic whether in jpeg format or png in method???

Offline
Joined: 12/13/2010
You can use the following

You can use the following Room class to change the background color (the following would give a room with pure red background):

 

public class Room {

   // The background red component

   private double bgRed = 1;

   //  The background blue component

   private double bgBlue = 0;

   // The background green component

   private double bgGreen = 0;

}