Re: jpg as background?

From: Christopher Wong (cwong_at_world.std.com)
Date: 12/28/03

  • Next message: Evil Monkey: "Re: jpg as background?"
    Date: 28 Dec 2003 17:12:01 GMT
    
    

    In article <BslHb.37087$R6.8460897@newsfep2-win.server.ntli.net>, Evil
    Monkey wrote:
    > Can i put a jpeg as a background for a panel or frame in swing?? if so what
    > should I be aware of?

    You might want to keep in mind that JPEGs and PNGs in Java eat up a lot of
    memory when displayed. Depending on resolution and depth, you could add
    megabytes to your app's footprint by throwing up a JPG background. See Bug
    Parade's bug ID 4190828:

             http://developer.java.sun.com/developer/bugParade/bugs/4190828.html

    One workaround is to use GIFs instead.

    Chris


  • Next message: Evil Monkey: "Re: jpg as background?"

    Relevant Pages

    • Re: jpg as background?
      ... > Can i put a jpeg as a background for a panel or frame in swing?? ... yes, you can, not only jpeg - any image. ... public class ImagePanel extends JPanel { ...
      (comp.lang.java.gui)
    • jpg as background?
      ... Can i put a jpeg as a background for a panel or frame in swing?? ... Could I make it the background of my frame and set the panel to opaque? ...
      (comp.lang.java.gui)
    • Re: jpg as background?
      ... >> Can i put a jpeg as a background for a panel or frame in swing?? ... > yes, you can, not only jpeg - any image. ... > public class ImagePanel extends JPanel { ...
      (comp.lang.java.gui)
    • Re: Ask EU Digital photo frames
      ... I was looking for an 8 incher (fnarr, fnarr) and preferably with a slideshow which could be set to change as slowly as once a day. ... They couldn't get the images on my USB stick or memory card to work either on the frame I bought or the demonstration one and they could get their cards to read on the frame I bought. ... Some applications will save the images in their own version of jpeg, I have seen this happen with Paint Shop pro f'rinstance; they are still jpegs but with subtle differences in filetyping and these are not necces celery read by applications that are expecting a standard jpeg. ...
      (uk.media.radio.archers)
    • Re: Ask EU Digital photo frames
      ... They couldn't get the images on my USB stick or memory card to work either on the frame I bought or the demonstration one and they could get their cards to read on the frame I bought. ... Some applications will save the images in their own version of jpeg, I have seen this happen with Paint Shop pro f'rinstance; they are still jpegs but with subtle differences in filetyping and these are not necces celery read by applications that are expecting a standard jpeg. ... mike dot mcmillan at ntlworld dot com ...
      (uk.media.radio.archers)