Results 1 to 2 of 2
Thread: JApplet background image
- 11-24-2010, 01:38 AM #1
Member
- Join Date
- Nov 2010
- Posts
- 11
- Rep Power
- 0
JApplet background image
Join Date: Nov 2010
Posts: 6
Rep Power: 0
footballHunter is on a distinguished road
Angry 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.
Similar Threads
-
JApplet background image
By footballHunter in forum Advanced JavaReplies: 1Last Post: 11-24-2010, 02:46 AM -
Japplet.getImage(): What if image file does not exist?
By CoderMan in forum Java AppletsReplies: 0Last Post: 02-11-2010, 11:31 PM -
Background image
By leiferouis in forum New To JavaReplies: 9Last Post: 03-08-2009, 05:49 PM -
Image as background
By Java.child in forum AWT / SwingReplies: 2Last Post: 10-02-2008, 11:37 PM -
How to display an image in JApplet
By fred in forum Java AppletsReplies: 1Last Post: 07-24-2007, 02:02 AM


LinkBack URL
About LinkBacks

Bookmarks