Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2010
    Posts
    11
    Rep Power
    0

    Question 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

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. JApplet background image
    By footballHunter in forum Advanced Java
    Replies: 1
    Last Post: 11-24-2010, 03:46 AM
  2. Japplet.getImage(): What if image file does not exist?
    By CoderMan in forum Java Applets
    Replies: 0
    Last Post: 02-12-2010, 12:31 AM
  3. Background image
    By leiferouis in forum New To Java
    Replies: 9
    Last Post: 03-08-2009, 06:49 PM
  4. Image as background
    By Java.child in forum AWT / Swing
    Replies: 2
    Last Post: 10-03-2008, 12:37 AM
  5. How to display an image in JApplet
    By fred in forum Java Applets
    Replies: 1
    Last Post: 07-24-2007, 03:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •