How to deploy my gif images

Hi All,
I have an application, which has an images in gif format. This gif images I use in the code for to different tree nodes. I declared in a constant the image path eg. "src/TreeModelIcons/" (The src folder where my source is located, I use Eclipse.)
How can I deploy my app, for use the deployed app correctly the images? Where I want to declare the images? In a JNLP resorce section I want to define them? In a jar file contain the TreeModelIcons folder with all image. What is a correct way? What can I do for my app use the images correctly? (If I run localy my app works perfectly.)
Thank you

We put our image files in the jar to preserve the directory structure... Works fine for us. Don't know if this is the "correct" way to do it, but...

Similar Messages

  • How do you get .gif images to move?

    I know when you take pictures in photo booth you can export it to your iChat account to make it a little animation. But how do i get the .gif images i dragged & dropped from the web to move? I open Preview to view the .gif but it just gives me all the frames of the picture and not really an animation. Can anyone help me make them move?

    I presume you want to have an animated buddy icon?
    In case you have leopard installed;
    1. Select the 4 photo (burst) button in Photo Booth.
    2. Look: 1.straight into the camera and after the flash look 2.left, 3.right an up.
    3. Select the miniature in the photo booth picture bar, if you like it: click on the iChat icon.
    4. Open iChat>preferences>general>tick the box "show animated buddy icons".
    You have an animated buddy icon and you can see your buddy's animations as well, in case they have one.

  • How do u view gif. images

    I been for the longest time wonder how to view gif. images on the ipod

    http://docs.info.apple.com/article.html?artnum=304677

  • How to resize a gif image

    hi
    i need to resize a gif image to my preferable height and width . i have copied some code from net , its working fine for small images . but when i resize large images the background becomes back .... so
    any body help me put in this....
    regards
    mano

    hi
    thanks for ur reply . can u plz tell me were to insert the code here
    Image image = Toolkit.getDefaultToolkit().getImage("C:\\image.gif");
    MediaTracker mediaTracker = new MediaTracker(new Container());
    mediaTracker.addImage(image, 0);
    mediaTracker.waitForID(0);
    // determine thumbnail size from WIDTH and HEIGHT
    int thumbWidth = Integer.parseInt("120");
    int thumbHeight = Integer.parseInt("75");
    double thumbRatio = (double)thumbWidth / (double)thumbHeight;
    int imageWidth = image.getWidth(null);
    System.out.println("imageWidth "+ imageWidth);
    int imageHeight = image.getHeight(null);
    double imageRatio = (double)imageWidth / (double)imageHeight;
    if (thumbRatio < imageRatio) {
    thumbHeight = (int)(thumbWidth / imageRatio);
    } else {
    thumbWidth = (int)(thumbHeight * imageRatio);
    // draw original image to thumbnail image object and
    // scale it to the new size on-the-fly
    BufferedImage thumbImage = new BufferedImage(thumbWidth,
    thumbHeight, BufferedImage.TYPE_INT_RGB);
    Graphics2D graphics2D = thumbImage.createGraphics();
    graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
    RenderingHints.VALUE_INTERPOLATION_BILINEAR);
    graphics2D.drawImage(image, 0, 0, thumbWidth, thumbHeight, null);
    // save thumbnail image to OUTFILE
    BufferedOutputStream out = new BufferedOutputStream(new
    FileOutputStream(args[1]));
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    JPEGEncodeParam param = encoder.
    getDefaultJPEGEncodeParam(thumbImage);
    int quality = Integer.parseInt("75");
    quality = Math.max(0, Math.min(quality, 100));
    param.setQuality((float)quality / 100.0f, false);
    encoder.setJPEGEncodeParam(param);
    encoder.encode(thumbImage);
    out.close();
    System.out.println("Done.");

  • How can I create GIF images in Photoshop?

    Hi,
    I want to create GIF animated images for my website named is http://www.veominfotech.com. I have tried but there is some problem with image smoothness. Can you suggest me a solution how I can give smoothness in GIF animated file.
    OR
    Can you suggest me any other software where i can create GIF animated image.

    Add more frames.  See link below for details.
    http://www.bigstockphoto.com/blog/creating-simple-yet-effective-animated-gifs-in-photoshop
    Nancy O.

  • How to Modifying a GIF image(Discontinued)

    Wrong forum.. This belongs to the Java Advanced Imaging forum. I have reposted it.
    Message was edited by:
    DJ_Viking
    Message was edited by:
    DJ_Viking

    hi
    thanks for ur reply . can u plz tell me were to insert the code here
    Image image = Toolkit.getDefaultToolkit().getImage("C:\\image.gif");
    MediaTracker mediaTracker = new MediaTracker(new Container());
    mediaTracker.addImage(image, 0);
    mediaTracker.waitForID(0);
    // determine thumbnail size from WIDTH and HEIGHT
    int thumbWidth = Integer.parseInt("120");
    int thumbHeight = Integer.parseInt("75");
    double thumbRatio = (double)thumbWidth / (double)thumbHeight;
    int imageWidth = image.getWidth(null);
    System.out.println("imageWidth "+ imageWidth);
    int imageHeight = image.getHeight(null);
    double imageRatio = (double)imageWidth / (double)imageHeight;
    if (thumbRatio < imageRatio) {
    thumbHeight = (int)(thumbWidth / imageRatio);
    } else {
    thumbWidth = (int)(thumbHeight * imageRatio);
    // draw original image to thumbnail image object and
    // scale it to the new size on-the-fly
    BufferedImage thumbImage = new BufferedImage(thumbWidth,
    thumbHeight, BufferedImage.TYPE_INT_RGB);
    Graphics2D graphics2D = thumbImage.createGraphics();
    graphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
    RenderingHints.VALUE_INTERPOLATION_BILINEAR);
    graphics2D.drawImage(image, 0, 0, thumbWidth, thumbHeight, null);
    // save thumbnail image to OUTFILE
    BufferedOutputStream out = new BufferedOutputStream(new
    FileOutputStream(args[1]));
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    JPEGEncodeParam param = encoder.
    getDefaultJPEGEncodeParam(thumbImage);
    int quality = Integer.parseInt("75");
    quality = Math.max(0, Math.min(quality, 100));
    param.setQuality((float)quality / 100.0f, false);
    encoder.setJPEGEncodeParam(param);
    encoder.encode(thumbImage);
    out.close();
    System.out.println("Done.");

  • How can i Save Gif image

    I download the JDK 1.4.0-beta and the imageio Package.
    I try to save a BufferedImage in the JPEG format, it's OK but when i use the gif format an empty file is created. What package do i need to save bufferedImage in gif Format ? ? ?

    I hope this could help :
    http://www.acme.com/java/software/Acme.JPM.Encoders.GifEncoder.html#_top_
    Adaya .

  • Where can I find video training to make animated GIF images?

    I would like to get more info on how to make animated GIF images with my Photoshop for my WordPress blog here  http://www.getfreewordpressthemesnow.com

    Hello Bill,
    you could have a look at http://helpx.adobe.com/photoshop/using/creating-frame-animations.html >>> ... till save the animation
    and at the end: Adobe also recommends >>> http://helpx.adobe.com/photoshop/using/saving-files-graphics-formats.html#save_in_gif_form at
    If the German language is no problem for you, you could use http://praxistipps.chip.de/photoshop-animiertes-gif-erstellen_1485
    Hans-Günter

  • Attaching a GIF image

    Hi all,
           Does anyone know how to attach a gif image to a  email.I am working in APO-ABAP.
    Regards
    Ahasan

    Hai Ahasan,
    Just check these links, you may get some idea...
    Re: Import and Display GIF images
    Re: Add image to button
    Embed image in Email.
    Image embed in email with ABAP
    Regards,
    Srikanth.

  • Insert Gif Image

    Hi,
    Can anyone please tell me how to insert a gif image into a JPanel in a specific location?

    in a specifica locationfor the location you have to use layouts.
    There are many tipe of Layout.
    I suggest you to use Box to have more control and align the component.
    Box mybox = Box.createVerticalBox();
       Box firstbox = Box.createHorizontalBox();
       Box secondbox = Box.createHorizontalBox();
    mybox.add(firstbox);
    mybox.add(secondbox);
    JLabel mylabel = new JLabel(new ImageIcon("url/myicon.gif");
    firstbox.add(mylabel);
    mylabel.setAlignmentX(0);

  • Creating GIF images, how do I edit all frames at once?

    Hey everyone. So I now how to make GIF images already. The problem I'm having is that I can't seem to figure out how to edit all the frames at once. I would like to brighten them up and add curves, maybe sharpen.
    I tried selecting all the layers, but then all the image editing options greyed out and weren't available.
    I really don't want to individually edit 58 frames, lol.
    Is there a way to edit all at once?
    PS - I'm using Photoshop CS3, if that helps!
    Thanks a lot!
    Mike

    amazing, you're just amazing!!
    thank you SOOOOOO much!
    take care,
    Mike

  • (Urgent)help: how to use sdk add a gif image into a pdf document

    I had use sdk plus-in add a new button of mine,if I click the button,a gif image will be inserted into the current page of pdf document
    My questions:
    one : When I clicked the button,there was a warnning box said:the image has not enough data.I don't known why?
    two : How can I be sure the position of the image which I inserted? and how to change it's position?
    three:  how to use sdk get the content of the document?

    hi Leonard:
    I do it like you said, but
    Why my image can not display in the pdf.
    code is:
    //====================================================================
    const ASInt32 theImageByteSize = IMG_WIDTH * IMG_HEIGHT;
    char* buff = new char[theImageByteSize];
    PDEImage volatile pdeImage = NULL;
    PDEImageAttrs pdeImageAttrs;
    PDEColorSpace pdeColorSpace;
    ASFixedMatrix imageMatrix;
    memset(&pdeImageAttrs, 0, sizeof(PDEImageAttrs));
    int hdl = _open(ImagePath, _O_RDONLY | _O_BINARY, _S_IWRITE | _S_IREAD);
    if (hdl == -1)
         AVAlertNote("[%s] create fail !!!!") ;
    if (_read(hdl, buff, theImageByteSize) == -1)
         AVAlertNote("read image fail!") ;
    pdeImageAttrs.width = IMG_WIDTH;
    pdeImageAttrs.height = IMG_HEIGHT;
    pdeImageAttrs.intent = ASAtomNull;
    pdeImageAttrs.bitsPerComponent = 8;
    pdeImageAttrs.flags = kPDEImageExternal | kPDEImageIsIndexed;
    pdeImageAttrs.decode[0] = fixedZero;
    pdeImageAttrs.decode[1] = fixedOne;
    pdeImageAttrs.decode[2] = fixedZero;
    pdeImageAttrs.decode[3] = fixedOne;
    pdeImageAttrs.decode[4] = fixedZero;
    pdeImageAttrs.decode[5] = fixedOne;
    ASFixedRect theMediaBox;
    PDPageGetMediaBox( AVPageViewGetPage(pageView), &theMediaBox );
    ASFixed theFixedWidth = (theMediaBox.right - theMediaBox.left);
    ASFixed theFixedHeight = (theMediaBox.top - theMediaBox.bottom);
    imageMatrix.a = ASInt16ToFixed(theFixedWidth);
    imageMatrix.d = ASInt16ToFixed(theFixedHeight);
    imageMatrix.b = imageMatrix.c = fixedZero;
    imageMatrix.h = 0;
    imageMatrix.v = 0;
    const Int32 cPaletteColors = 256;
    PDEIndexedColorData theIndexedData;
    theIndexedData.size = sizeof(theIndexedData);
    theIndexedData.baseCs = PDEColorSpaceCreateFromName(ASAtomFromString( "DeviceRGB"));
    theIndexedData.hival = cPaletteColors - 1;
    unsigned char data[3] = {255, 0, 0};
    theIndexedData.lookup = (char *)data;
    theIndexedData.lookupLen = cPaletteColors * 3;
    PDEColorSpaceStruct theColorData;
    theColorData.indexed = &theIndexedData;
    pdeColorSpace = PDEColorSpaceCreate(ASAtomFromString( "Indexed" ), &theColorData );
    pdeImage = PDEImageCreate(&pdeImageAttrs, sizeof(pdeImageAttrs), &imageMatrix,
                                                0, pdeColorSpace, NULL, NULL, NULL, (unsigned char*)buff, theImageByteSize);
    I want die, I had done this for so many days, My GIF doesn't insert into pdf,
    unsigned char data[3] = {255, 0, 0};
    theIndexedData.lookup = (char *)data;  "
    whether the data set wrong?
    I confused what I do next   

  • How JPG or GIF Image open in MIDP?

    How my j2me application can support jpg or gif image format. I have tested png file in midp 1.0 and its not support other than png format( im not sure about midp 2.0 does it support or not). I have seen lot of mobiles those support gif and jpg file formats. Does j2me applications on those mobile can support other image formats?
    Plus it is possible that i can develop my own decoder for jpg or gif format. I know it possible, but im talking related to its processing power consumption. Or is there any third party api exist to support jpg or gif file format on midp. Please r

    Here is the code snap that read image from a URL.. I have tested this code on localhost & two different pc on lan in emulator.. but not in actuall mobile... but i hope it will work...
    Image image = null ;
    DataInputStream httpInput = null ;
    DataOutputStream httpOutput = null ;
    HttpConnection httpCon = null ;
    String url = "http://localhost:8080/images/picture.png"
    try
    httpCon = (HttpConnection)Connector.open(url);
    int bufferSize = 512 ;
         byte byteInput[] = new byte[bufferSize] ;
         ByteArrayOutputStream imageBuffer = new ByteArrayOutputStream(1024*50);
         httpInput = new DataInputStream( httpCon.openInputStream() );
                   System.out.println("Http-Input Connecting Establish Successfully");
                   httpOutput = new DataOutputStream( httpCon.openOutputStream() );
                   System.out.println("Http-Output Establish Successfully");
    int size = 0 ;
    // read all image data ....
         while ( ( size = httpInput.read( byteInput , 0 , bufferSize ) ) != -1 )
                        imageBuffer.write( byteInput , 0 , size ) ;
    // get byte from buffer stream
              byte byteImage[] = imageBuffer.toByteArray();
                   System.out.println("read byte " + byteImage.length );
         // convert byte to image ...
         image = Image.createImage( byteImage , 0 , byteImage.length );
         return image ;
         //return null ;
    catch( IOException e )
                   System.out.println("\nUnable to Perform Image IO Operation with Host");
         return null ;
    ....................................

  • How to make a Colorful Gif Image for Holi

    How to make a colorful Gif Image for Happy Holi 2014

    Okay, I know this doesn't answer your question, but don't get me wrong. A logo is meant to be the way it was designed - upright, no flipping/ swiveling animation. Why exactly do you want to let your logo turn around?
    If its to grab attention, why dont you consider animating the area on which your logo sits (header)? Or maybe add nice transitive slideshows on your main content area to add more interactivity?

  • When I "save page as" I also get a folder with gif images, jscript script files and other similar items. how can I stop this.

    When I "save page as" via the file button at the top edge of the page, I also get a folder containing gif images, jscript script files and other similar items. I am not is allowed to delete it unless I also delete the page I need. How can I stop this from happening. is it the way I've configured firefox perhaps.
    == since I installed firefox

    Make sure that you have selected "Web Page, complete" to save the page.

Maybe you are looking for

  • VPN License question on 5505 ASA Firewall

    Inherited a firewall project, it's getting a VPN running on a ASA 5505 Firewall for remote workers.  Firewall was configured by someone else who isn't available.  Basic question on the License: The current license is good for 2 SSL VPN Peers, and 20

  • Heading with parameter in ALV report

    hi i want to add heading to my ALV report which i created using factory method. in my code i wrote: data:gr_display type ref to cl_salv_display_settings. gr_display = gr_table->get_display_settings(  ). gr_display ->set_striped_pattern( cl_salv_displ

  • We cannot do std cost estimate every month in ML

    HI Can we do std cost estimate whenever required with changed price, can i change the price in material master -how regards sowmya

  • Is there a way not to submit my credit card details and still access itunes ?

    Is there a way not to submit my credit card details and still access itunes ?

  • Check-in all documents via superadmin?

    Hello Forum, we have a Problem with the EP 7. We are looking for a possibility to uncheck, checked-out documents per Admin. We tried to Log-In on the Portal with the Super Admin Role, and tried the point show all checked-out documents. Unfortunately