-
JApplet background image
I have an applet which has an imageBackground which simply paints an image. On the applet I have a form with some checkboxes. When I scroll my mouse over the checkboxes, it paints the background in the word part of the checkbox. It only does this on a couple of machines and I can't figure out why. I've cleared my cache and everything else on mozilla and I still get the same problem. Here is my image panel
public class ImagePanel extends JPanel{
BufferedImage image;
public void setImage(BufferedImage i){
image = i;
}
public void removeImage(){image = null;}
public void paintComponent(Graphics g){
super.paintComponent(g);
if(image != null)
g.drawImage(image, 0,0,this.getWidth(),this.getHeight(),this);
}
}
Or you can check it out at beancitycoffeeco.com
You'll have to make an account which I can delete if you let me know what it is.
I'm only using Swing, and I've tried setting the JCheckBoxes to Opaque(true)
and Opaque(false);
Any help would be greatly appreciated
-
Multi-post -- locked. OP has been warned not to do this. These will be deleted shortly.