USE OF GIF FILE

Hai,
i create one form and calling gif file in it but when i run it
no gif animination is working is anyway to call gif with animination.

Got it .... It needed a forward slash instead of the back slashes.
newButton = new ToolBarButton(new ImageIcon(Ipsuite.class.getResource(
"images/new.gif")),"Create New");

Similar Messages

  • Use of Gif File in Forms 6I

    Hai to all,
    i create one form and using gif file in it but problem is that at runtime
    no animination is working, is anyway to use gif with animination.
    thanx,
    [email protected]

    No.

  • How to use a .gif file in authorware

    Dear community,
    My wish is to use an animated .gif file to run visible during the task which I have programmed.
    I would be very grateful if somebody could explain how I could do this.
    Thanks in advance!

    Insert > Media > Animated GIF...
    When publishing, be sure not only the correct Xtra is installed, but be sure the "AWIML32.DLL" file is in the root of the published folder (same location as the .exe) for the GIF to play correctly.
    Also, I think I recall...to get a transparent background...it has to be...black? Not white...? Am I remembering that correctly....?
    Erik

  • HT204379 Anybody know if I can use a gif file as a screen saver on an iMac8,1 with10.6.8?

    I have a gif file, equivalent to 56 slides, shown as
    (450 × 451 pixels, file size: 2.46 MB, MIME type: image/gif, looped, 56 frames, 5.6s)
    is there a way to use it as screensaver ?
    Thanks

    google knows all

  • Importing gif file to ImageIcon

    Hi,
    I am trying to use a gif file that I have included in my project (using Windows XP). I am trying to stick the image from the gif file into a ImageIcon variable, and sticking the variable into a label. Here is the code that I am using to have the program access the gif file:
    private ImageIcon redX = new ImageIcon( " \\JAVA programs\\Week 8\\lab8_1a\\redshd.gif " );
    I have a classPath setup in my environment variables/system variables as follows:
    .;C:\Documents and Settings\Jim Roth\My Documents\Visual Studio Projects\Programs
    and the path to the gif file is as follows:
    C:\Documents and Settings\Jim Roth\My Documents\Visual Studio Projects\Programs\JAVA programs\Week 8\Lab8_1A\redshd.gif
    When I run the program, the screen comes up empty. I am using a basic frame, with a GridLayout. When I change the input into the label to a string, it shows up on the label when the program runs.
    In debug mode, I am not quite sure of what the values apply to, but oneonf them shows up as 'null'.
    I think my problem lies with the program just not finding the gif.file. Any suggestions?
    Thanks a lot!
    Jimbo

    OK, here is the program.....it is my very first stab at anything gui. We are supposed to display a tic tac toe grid, and have it randomly put x's and o's (or something simiilar) in a3x3 grid in a random fashion. Here it is:
    import javax.swing.*;
    import java.awt.*;
    import java.util.*;
    public class TicTacToe extends JFrame
    private ImageIcon redX = new ImageIcon("\\JAVA programs\\Week 8\\lab8_1a\\redshd.gif");
    private ImageIcon blueCirc = new ImageIcon("\\JAVA programs\\Week 8\\lab8_1a\\qmark.gif");
    /** Default constructor for TicTacToe */
    public TicTacToe()
    setLayout(new GridLayout(3,3,2,2));//sets grid layout for a 3x3 grid with 2 pixel spacing
    //add 9 JLabels to hold image icons
    for(int i =0; i < 10; ++i)
    add(this.generateJLabel());
    public static void main(String[] args)
    TicTacToe game = new TicTacToe();
    game.setTitle("Tic Tac Toe");
    game.setLocationRelativeTo(null);
    game.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    game.setSize(250, 250);
    game.setVisible(true);
    protected JLabel generateJLabel()
    Random rand = new Random();//instantiate random object to generate ints
    int randNum = rand.nextInt(4);//generate ints between 0 and 4 (exclusive)
    /*The following switch statement looks at random number generated by the Random
    object and assigns an image to a JLabel according to the int returned./
    switch (randNum)
    case 1:
    JLabel temp = new JLabel(this.redX);
    return temp;
    case 2:
    JLabel temp1 = new JLabel(this.blueCirc);
    return temp1;
    default:
    JLabel temp2 = new JLabel();
    return temp2;
    }

  • How to view gif files...

    Hi
    I have launched swing application in webstart.
    I have used some gif file in my application.
    While creating Jar file I have added all the gif files also.
    But I couln't view that gif files while running the application
    on the webstart.
    Thanks in advance.Kindly help me to solve this problem
    regards,
    selva.

    Hi!
    The following code is my swing application.While running in
    konsole I am able to view the gif file on the Button But,while
    running on java webstart I couldn't view that.
    I have added that gif file in the Jar ARchive.
    import java.awt.*;
    import javax.swing.*;
    class hi extends JFrame
    hi()
    JButton jb=new JButton("Hello");
    jb.setIcon(new ImageIcon("Ergo.gif"));
    this.getContentPane().add(jb);
    this.setSize(200,200);
    this.setVisible(true);
    public static void main(String args[])
    new hi();
    thanks
    regards,
    selva.

  • Can Premiere Elements be used on an animated gif file?

    I am considering purchasing Premiere Elements but I need to know if one can use it to add effects to an animated gif file.
    For example, in Photoshop Elements one can add certain effects to a gif image, such as giving it certain textures or filters.
    Can one do the same kind of thing in Premiere Elements and if so can it be done to an animated gif file?
    Maybe a better way to ask this question is:  can you import an animated gif file into Premiere Elements and then manipulate it?  Run filters, etc.
    Thanks for your help.

    If you load your GIF into Premiere Elements 10, edit it, then share to an AVI file, you can then import the AVI file into GIF Movie Gear by Gamani, which will then create an animated GIF. I learned about this utility from a Microsoft tutorial on creating icons for Windows XP.
    http://www.gamani.com/product_icon.htm
    If you use Firefox and get redirected, try using Internet Explorer instead.
    After the trial period is over, it's $29.95US for 4 licences.
    When you share to an AVI file, you will want to select the Microsoft AVI item from the list, then click the advanced button to open up the dialog where you will need to select a codec and enter the frame size and frame rate. The codec will have to be one that GIF Movie Gear likes, so there may be some trial and error needed to get a good codec. I shared to an AVI after picking Xvid for the codec, which GIF Movie Gear imported.

  • How to edit existing gif file using photoshop (CS2)

    Hello Forum,
    I have some gif images that I have used for creating tabs on a
    web page. I downloaded these images from somewhere, and did not create them
    myself. I would like to change the color of these gif files.
    They are a nice image, with a gradient applied at the top, and I have a left side gif for the tab as well as an "over" image set for the tab(s) as well.
    I use the images in a css file to display the tabs on a web page.
    The gradient is across the top of the tab, which is a lighter color, almost going to white, and the rest of the tab is a light blue, with left and right top a slight rounded corner. I would like to preserve the gradient appearance, but change the light blue theme to an almost black (#333333) color.
    How can I do this in photoshop?
    Thanks,
    eholz1

    Hi All
    I would like to create an action in CS2 to resize an image to e.g 600 x ? pixels and then save for web at max 149kb .
    Any clues? I've tried a few different files of different file sizes?(possible cause here) and always end up with different results when using my actions or the image processor.
    Is this at all possibleto accomplish in a single step?
    Let me elaborate more. On a particular forum where post we are limited to 600 x? pixels and file size no greater than 150 kb. When creating this action in CS2 with different file sizes one lands up with files ranging from 70kb (not as good for viewing) to 149kb(perfect size)or 357kb?(way too big). I'd like to have as close to <150kb for ALL files in the "action"
    Is this possible without getting into scripting?
    Thanks
    Don

  • How can i convert an image into gif file as jpeg by using com.sun.image.*

    please help me to convert an image into gif format. i have used sun's impl com.sun.image.code.jpeg package to convert a buffered image into a jpeg file. is there any implementatioln available from sun to handle gif files.

    Many. Try for instance google with 'java image encoders'. Go to the URL http://www.google.com/search?q=java+image+encoders and be amazed of the wonders of modern web search tools.

  • Display gif files using servletoutputstream (again)

    Hello,
    I'm trying to display several gifs files in a html file. I extract all the files from an oracle database. I'm trying to use a servletoutputstream, but it does not difference between text and image.
    Process:
    1. Select html file from database
    2. Go through each line of html file to find the links to gif files
    - if gif :
    3. Ask for the gif file detected and select from database
    4. use servletoutputstream to display the file
    - end of if
    -else
    5. display the line of text.
    Is it possible to use a servletoutputstream to display several gifs and text content?
    Is there one other solution to do it correctly?
    Thanks in advance,
    Angela.
    The code I use is:
    private void retrieveFile()
    FileWriter fwHtml=null;
    oracle.sql.BLOB blob=null;
    InputStream in=null;
    ServletOutputStream out=null;
    ResultSet rsGif=null;
    try
    //Extract html file from the database
    String query="SELECT * FROM DBFiles WHERE FILENAME='"+file+"'";
    PreparedStatement ps = connection.prepareStatement (query);
    ResultSet rs=ps.executeQuery();
    rs.next();
    String fileName=rs.getString("FILENAME");
    if (fileName.indexOf("html")!=-1)
    InputStream fis=rs.getAsciiStream(5);
    //I read each line to know where the html file calls the links to the gif files
    BufferedReader reader= new BufferedReader(new InputStreamReader(fis));
    String line;
    String mimeType="";
    try{
    while ((line=reader.readLine()) !=null)
    if((line.indexOf("img src="))!=-1)
    int imgIndex=line.indexOf("img src=");
    int altIndex=line.indexOf(" alt=");
    //I obtain the name of the gif file that I obtain from the database
    String gifFile=line.substring(imgIndex+9,altIndex-1);
    query="SELECT * FROM DBFiles WHERE FILENAME='"+gifFile+"'";
    ps.clearParameters();
    ps = connection.prepareStatement (query);
    rsGif=ps.executeQuery();
    rsGif.next();
    blob=((OracleResultSet)rsGif).getBLOB("GIF");
    String gifName=rsGif.getString("FILENAME");
    mimeType = context.getMimeType(gifName);
    response.setContentType(mimeType);
    out = response.getOutputStream();
    in=blob.getBinaryStream();
    int bufferSize=blob.getBufferSize();
    byte[] buffer = new byte[bufferSize];
    int bytesRead=0;
    int intBuffer=in.read(buffer);
    while ((bytesRead=intBuffer)!= -1)
    out.write(buffer,0,bytesRead);
    in.close;
    else
    byte[] bString =line.getBytes();
    mimeType = context.getMimeType(fileName);
    response.setContentType(mimeType);
    out.write(bString,0,line.length());
    catch (IOException ioe) {
    System.out.println("Unable to open Image file "); ioe.printStackTrace();
    finally {
    if (out != null) {
    out.flush();
    out.close();
    ps.clearParameters();
    connection.commit();
    rsGif.close();
    rs.close();
    ps.close();
    catch (SQLException sqle)
    sqle.printStackTrace();
    catch (Exception e)
    e.printStackTrace();

    Let's put it this way, since I don't have the patience to look at your code. HTML cannot have images embedded in it, it can only have links to images. So you could have a servlet that sends an image, but only a single image and nothing else. I see you have code to set the MIME type of the image, so I don't have to tell you about that.

  • Show several gifs files using servletOutputstream

    Hello,
    I'm trying to display several gifs files in a html file. I extract all the files from an oracle database. I'm trying to use a servletoutputstream, but it does not difference between text and image.
    Process:
    1. Select html file from database
    2. Go through each line of html file to find the links to gif files
    - if gif :
    3. Ask for the gif file detected and select from database
    4. use servletoutputstream to display the file
    - end of if
    -else
    5. display the line of text.
    Is it possible to use a servletoutputstream to display several gifs and text content?
    Is there one other solution to do it correctly?
    Thanks in advance,
    Angela.
    The code I use is:
    private void retrieveFile()
    FileWriter fwHtml=null;
    oracle.sql.BLOB blob=null;
    InputStream in=null;
    ServletOutputStream out=null;
    ResultSet rsGif=null;
    try
    //Extract html file from the database
    String query="SELECT * FROM DBFiles WHERE FILENAME='"+file+"'";
    PreparedStatement ps = connection.prepareStatement (query);
    ResultSet rs=ps.executeQuery();
    rs.next();
    String fileName=rs.getString("FILENAME");
    if (fileName.indexOf("html")!=-1)
    InputStream fis=rs.getAsciiStream(5);
    //I read each line to know where the html file calls the links to the gif files
    BufferedReader reader= new BufferedReader(new InputStreamReader(fis));
    String line;
    String mimeType="";
    try{
    while ((line=reader.readLine()) !=null)
    if((line.indexOf("img src="))!=-1)
    int imgIndex=line.indexOf("img src=");
    int altIndex=line.indexOf(" alt=");
    //I obtain the name of the gif file that I obtain from the database
    String gifFile=line.substring(imgIndex+9,altIndex-1);
    query="SELECT * FROM DBFiles WHERE FILENAME='"+gifFile+"'";
    ps.clearParameters();
    ps = connection.prepareStatement (query);
    rsGif=ps.executeQuery();
    rsGif.next();
    blob=((OracleResultSet)rsGif).getBLOB("GIF");
    String gifName=rsGif.getString("FILENAME");
    mimeType = context.getMimeType(gifName);
    response.setContentType(mimeType);
    out = response.getOutputStream();
    in=blob.getBinaryStream();
    int bufferSize=blob.getBufferSize();
    byte[] buffer = new byte[bufferSize];
    int bytesRead=0;
    int intBuffer=in.read(buffer);
    while ((bytesRead=intBuffer)!= -1)
    out.write(buffer,0,bytesRead);
    in.close;
    else
    byte[] bString =line.getBytes();
    mimeType = context.getMimeType(fileName);
    response.setContentType(mimeType);
    out.write(bString,0,line.length());
    catch (IOException ioe) {
    System.out.println("Unable to open Image file "); ioe.printStackTrace();
    finally {
    if (out != null) {
    out.flush();
    out.close();
    ps.clearParameters();
    connection.commit();
    rsGif.close();
    rs.close();
    ps.close();
    catch (SQLException sqle)
    sqle.printStackTrace();
    catch (Exception e)
    e.printStackTrace();

    I may be wrong, but I don't think HTML supports inlining image data for a page. I think you need to let the client process the HTML and make requests to your servlet for specific images; it is at this point they should be read from the database and returned to the client.
    So I'll change your algorithm to
    1. Select html from the database
    2. Return it to the client
    3. Client makes request for an image (<img src="servlet?image=name">) maybe
    4. Servlet reads image from the db
    5. Servlet set appropriate header information (image/gif etc)
    6. Servlet outputs image data.

  • I'm using OSX 10.7.4 how do I convert gif files to jpeg? Preview does not have a "save as" choice.

    I'm using OSX 10.7.4 how do I convert gif files to jpeg? Preview does not have a "save as" choice.

    GraphicConverter (the best shareware ever devised for the Mac) will do this for you:
    http://www.lemkesoft.com/

  • Need a way to request for a web resource (e.g .css, .gif file) using jpdk

    I am wondering if there is any way by which we can request for a web resource from portal to portlet provider.
    Currently if in order to display image I need to make direct request to portlet provider rather than routing the request through portal. As a result of this there is no session affiliation.
    My web resource can also be .jsp or .html file
    Any suggestions are welcome.

    Hi Hernando,
    It seems I haven't put my question correctly, probably following might help me explain you what I require:
    Portlets are added to portal page. Portlet content is served by portlet provider. So when you are viewing a portal page containing portlets in reality portal requests the portlet data from portlet-provider. So the actual request flow is: Request for a portal page, portal analyzes portlets on the page, and then request the portlet provider for the content associated with portlet. In the exact reversal process data flow is: portlet-provider generates the content which is passed to portal & then portal forwards it to end user.
    Now want something similar to happen with images (.gif files). But the problem is I am failing to create a link for this resource. I want the request for image to flow through portal very much the same way as its doing for the content. In other words I want to create a link which would inform portal to request for the resource to portlet provider. In this scenario portlet provider would pass the image to portal which would be forwarded to end user. Currently to get the images I am making direct request to portlet provider there by bypassing the request to flow through portal, which I do not want. Above all this resource can be anything a css file or a image or a .js file.
    So can you suggest me how to achieve it?

  • How to receive a gif file using a custom ABAP FM

    Hi Experts,
              Here is my requirement.
              I have to provide an interface which should receive a GIF file.
              I have created a FM but what data type should I define in the import parameter or the table parameter to receive the GIF file (which has been converted to binary format by the other application).
    Thanks in advance.

    Hi,
       Do not type it to any associated type.
    Create a tables parameter with some name.
    Actually the FM GUI_UPLOAD does the same thing(Just that it is not RFC enabled).
    YOu can check its code.
    Regards,
    Ravi

  • .GIF file only needs to move once in google+ pages, I'm using CS6

    Hi, I'm having hard time fixing my .GIF file. I only had it move once in CS6 yet after I upoaded in Google+ page it keeps on moving continuesly. please help me out with this proble..

    Not sure if I can pull this off, but EricMugs posted first to the Premiere Pro forum, and provided a screen-cap, per my request - until I realized that this was a Photoshop question. Here that screen-cap is:
    This might provide some additional info.
    Hunt

Maybe you are looking for

  • Dynamic class load problem..

    Hello all, I am rather new to this concept of creating class loaders. I started on a simple test and landed into a problem right away. I have a Java class file stuffed away somewhere on m machine (at a location not on my CLASSPATH) . I just want to l

  • Portal Password reset

    Dears, Is there any functionality in EP6.0 by which if any enduser forget his password,he could reset it himself without going to SU01. Shivam

  • Exchange 2010 Hybrig configuration removal

    Our Exchange environment currently consists of an Exchange 2003 and Exchange 2010 SP3 hybrid server. We were looking at moving all mailboxes from our Exchange 2003 server to Office 365 via the Exchange 2010 Hybrid server. Due to business decisions, w

  • 2 issues: "Installation Error", App quits

    on a brand-new i7 imac running 10.6.2: 1st issue: after migrating everything from my old iMac (20" 2nd gen aluminum Core 2), GarageBand displays the "initializing..." window, then a second window says "Installation Error. Please ensure this product h

  • Does autodesk inventor work well on a i5 core?

    Does anyone have experience with autodesk inventor(mechanical engeneering program) on a macbook pro with i5 core ? , or would it run well on the i5 or should I buy the i7 core? Its the 2008 version so its not compatible with the mac OS but I've heard