bonjour,

voila jai une image :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3

Image image = toolkit.getImage("cat.gif");
et jai une methode paint :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

publicvoid paint(Graphics g)
{
g.drawImage(image, 0, 0, this);
setBackground(new Color(153,208,181));
Dimension d = getSize();
if ((offGraphics == null) || (d.width != offDimension.width)
|| (d.height != offDimension.height))
{
offDimension = d;
offImage = createImage(d.width, d.height);
offGraphics = offImage.getGraphics();
}
offGraphics.setColor(getBackground());
offGraphics.fillRect(0, 0, d.width, d.height);
offGraphics.setColor(getForeground());
dessinerLesObjets(offGraphics);
g.drawImage(image, 0, 0, this);

ceci affiche bien mon image mais en 1er plan et je voudrai la mettre en second plan pour pouvoir ressiner dessu...
comment faire??