Animated GIF causes popup to hang?

Hi:
We have started using animated GIFs heavily in Teststand popups for about the last year and half. As we have used this feature more and more, we have had more and more reports of Teststand hanging after acknowledging the popups.
The problem is very intermittant. But it is reproducible. See attached files. All the sequence does is call a non-modal teststand popup over and over that displays an animated image. The popup is set to timeout after one second (just for convenience of reproducing the problem). The sequence consistently hangs within a couple minutes. Behavior is the same in the sequence editor or the CVI user interface. If the sequence is changed such that no image is displayed by the popup, the sequence does not hang.
We are using Teststand 4.0.1f1. Let me know how to resolve this, as it is quite a major issue with us. 
Thanks,
Dave
Solved!
Go to Solution.

dsteel,
Take a look at the following thread, http://forums.ni.com/ni/board/message?board.id=330​&message.id=22997#M22997. Basically there is some code that the TestStand step type uses from the CVI RTE to display non-BMP images in an IE control. Specifically, to display the IE ActiveX control, the step type must create an STA thread to display the dialog and it uses some threading functions from the CVI RTE to do it. There is a slight chance that when the step type waits for the STA thread to complete, the CVI function function to wait for the thread can sometimes miss its event, so the step type ends up waiting forever for the STA to complete, even though it already did.
If you would like to discuss this in more detail, please contact us by using http://ni.com/ask
Message Edited by Josh W. on 03-13-2009 11:49 AM
Message Edited by Josh W. on 03-13-2009 11:51 AM
Josh W.
Certified TestStand Architect
Formerly blue

Similar Messages

  • Animated GIF transparency in Muse

    I am using Adobe Muse CC 2014 and am interested in placing either a transparent animated .GIF image or an Adobe Edge Animate CC 2104 transparent .OAM image on top of
    an image in the <body> section. Placing the Adobe Edge Animate .oam image results in a NON-TRANSPARENT background, even though the same background when
    creating/saving/viewing the .html image in Adobe Edge Animate  displays as transparent.
    I created an animation with a transparent background in both Adobe Photoshop CC 2104 and Fireworks CS6, saving the file as an animated .gif. In both applications, the
    background is again, transparent. Placing either of those animated .gif images on top of a <body> background image (.jpg) results in a white stroke/outline around the
    non-transparent part of the animated .gif.
    All help would be greatly appreciated for enabling either an Adobe Edge Animate .oam image with a transparent background, or an animated .gif file with a transparent
    background to be placed on top of a <body> image in Adobe Muse WITHOUT a stroke/outline of any color. Either the steps to make this happen OR a temporary
    workaround would be terrific!
    NOTE: The stroke of the image has been set to NONE in Adobe Muse to remove this option as a variable.
    Thanks,
    Prefix

    I appreciate your reply. The problem, in this case, did not lie with Photoshop or Fireworks - both of which were used in the creation of the animated images. In both
    applications, adding a darker background (just for testing purposes) shows no white outline. As it turned out, the problem was due to the nature of saving (in this case)
    a .gif from either a .png file (native to Fireworks), or from a .psd file (Photoshop, of course). The .gif supports transparency, but only at greater than 50%. Anything at 50% or
    less (as would occur with anti-aliasing or feathering, for example) will resolve to white. Since there was feathering (and anti-aliasing) for both the transparent characters
    as well as the outer edge of the sphere, saving the file as an animated .gif caused the white outline to appear.
    The GOOD news is that there is a solution to the problem. I created a file with the animated images 3X larger than the final size. When the image was reduced
    in Adobe Muse to the desired size, the white outlines disappeared, leaving me with what I intended as an image from the beginning.
    Thanks all who replied and ultimately helped to determine first the cause of the white outlines, and then a way to "fix" the problem.
    All of your help is greatly appreciated.
    Prefix

  • When opening an animated gif, lots of memory consumed followed by crash

    Any large (read: anything more than a megabyte) animated GIF causes Firefox to consume all available memory, and then subsequently, crash.
    I've tried the following:
    - Disable all extensions
    - Disable hardware acceleration
    - Run in safemode
    - New Firefox installation
    - Set affinity of Firefox to only use one core
    With no effect.
    I am a long time Firefox user and enthusiast, but I am really considering making the transition to Chrome (which does not crash with long animated GIFs)
    There is no option to submit a crash report about it, and there is also no crash reports on my local system AT ALL.
    The following is a short video demonstrating the memory leak.
    https://www.youtube.com/watch?v=mIS8baOSwJ0&feature=youtu.be

    After some further reading, I set the preference image.mem.decodeondraw=false in about:config. Firefox struggled with the GIF, not always able to display anything useful in the window, but did not crash. Clicking the Home button to navigate the tab away allowed Firefox to unload memory. Not an improvement, really.
    Doing a little more searching, I discovered that the file you linked was the demo for this yet-to-be-fixed bug: [https://bugzilla.mozilla.org/show_bug.cgi?id=523950 523950 – Long animated GIF makes Firefox consume all available memory].
    It's generally not helpful to add comments to bugs (unless you can help fix them), but you can register on the Bugzilla site and "vote" for them to be fixed. See:
    * [https://bugzilla.mozilla.org/page.cgi?id=etiquette.html Bugzilla Etiquette]
    * [https://bugzilla.mozilla.org/page.cgi?id=voting.html Voting]

  • Animated gif in splash hangs or very slow

    Hi
    Not new to programming but quite new to Java. I have tried to find information
    on this already but could not find it. If I missed it and have a double post here,
    please let me know the link to the other post.
    I have a application built in Java. On my laptop it starts in just 2 seconds.
    On the production machine (AMD Geode based touch panel) the application
    starts in about 30 seconds.
    Due to the startup time I wanted to just the -splash option from javaw.exe
    example:
    D:\dist>javaw -splash:animated.gif -jar hmi.jar
    The animated gif shows immediately and is 4532 bytes large.
    java -version gives the following output:
    java version "1.6.0_07"
    Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
    Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)
    But with the animated gif as splash the application takes 3 to 4 minutes
    to start or it does not start at all but only keeps showing the splash.
    If I use a non-animated gif the startup time is almost like the normal 30 seconds.
    Any known issues with startup performance using animated gif as splash,
    or are there any known issues on AMD Geode based systems regarding the
    startup performance and usage of animsted gifs as splash ?

    I just see that the splash is not removed from screen either.
    If I minimize the java application I see the animated gif still
    there on screen.
    I tried this with a normal gif (non animated) and that one
    is also not removed from screen when the application is started

  • Disabled JMenuItem doesn show animated gif

    Hi there
    I would like to have a popup menu with actions that are enabled after they have finished with some background task taking some time. Basically this works fine for the enabling action on a shown popup. However, adding an animated gif as the icon or disabled icon does not show it in disabled state. In enabled state it works perfect. Please have a try with the sample code. You should see the disabled item for 2 secs and the icon is not showing up. After being enabled, it does. Invoking the menu again shows the animated gif in its last state left, but not moving any more.
    I guess, repaints are not done appropriately in disabled state... Any ideas how to solve that would be highly appreciated :-)
    Actually I used the icon at http://mentalized.net/activity-indicators/indicators/pascal_germroth/indicator.white.gif
    Cheers
    Daniel
    public class Main
      public static void main(String[] args)
        final JFrame frame = new JFrame();
        frame.addMouseListener(new MouseAdapter()
          public void mousePressed(final MouseEvent e)
            final JPopupMenu popup = new JPopupMenu();
            popup.add(new JMenuItem("Open..."));
            popup.add(new JMenuItem("Close"));
            final JMenuItem action = new JMenuItem("Long loading until enabled");
            action.setIcon(new ImageIcon("C:/spinner.gif"));
            action.setDisabledIcon(new ImageIcon("C:/spinner.gif"));
            popup.add(action).setEnabled(false);
            popup.show(e.getComponent(), e.getX(), e.getY());
            SwingUtilities.invokeLater(new Runnable()
              public void run()
                try
                  Thread.sleep(2000);
                  action.setEnabled(true);
                catch (InterruptedException e1)
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setSize(300, 200);
        frame.setVisible(true);
    }Edited by: daniel.frey on Apr 22, 2009 7:50 AM

    The problem is that you are causing the EDT to sleep, which means the GUI can't repaint itself. Read the section from the Swing tutorial on Concurrency to understand what is happening.

  • Animated gif on createCustomCursor

    Hello All,
    I am trying to show an animated gif on one of my custom cursors using :
    Toolkit tk = Toolkit.getDefaultToolkit();
    try{
    myFrame.setCursor(
    tk.createCustomCursor(ImageIO.read(this.getClass().getResourceAsStream("test.gif")),new Point(15,15),"MyCursor" ) );
    catch(Exception e){}But i always see a static image for that gif.
    And when i try to use the same Image to show it on a JLabel something like this :
    ImageIcon ii = new ImageIcon(this.getClass().getResource("test.gif"));
    JLabel label3 = new JLabel(ii);I see the animated image here.
    Can someone help in showing the animated gif on the customcursor.
    I have tried using the below discussion for reference but it didnt help for animated images.
    http://forums.sun.com/thread.jspa?threadID=267944
    Thanks for your time.

    Hello,
    But i always see a static image for that gif.[http://java.sun.com/javase/6/docs/api/java/awt/Toolkit.html#createCustomCursor(java.awt.Image,%20java.awt.Point,%20java.lang.String)]
    Note that multi-frame images are invalid and may cause this method to hang.--------
    Here is another approach:
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import javax.swing.*;
    class AnimatedCursorTest {
      private javax.swing.Timer animator;
      private JButton button;
      private Toolkit tk    = Toolkit.getDefaultToolkit();
      private Cursor[] list = new Cursor[3];
      private URL url00 = getClass().getResource("32x32_00.png");
      private URL url01 = getClass().getResource("32x32_01.png");
      private URL url02 = getClass().getResource("32x32_02.png");
      private Point p   = new Point(0,0);
      public JComponent makeUI() {
        list[0] = tk.createCustomCursor(tk.createImage(url00), p, "00");
        list[1] = tk.createCustomCursor(tk.createImage(url01), p, "01");
        list[2] = tk.createCustomCursor(tk.createImage(url02), p, "02");
        animator = new javax.swing.Timer(100, new ActionListener() {
          private int counter = 0;
          public void actionPerformed(ActionEvent e) {
            button.setCursor(list[counter]);
            counter = (counter<list.length-1)?counter+1:0;
        button = new JButton(new AbstractAction("Start") {
          public void actionPerformed(ActionEvent e) {
            JButton b = (JButton)e.getSource();
            if(animator.isRunning()) {
              b.setText("Start");
              animator.stop();
            }else{
              b.setText("Stop");
              animator.start();
        button.setCursor(list[0]);
        JPanel p = new JPanel(new BorderLayout());
        p.add(button);
        p.setBorder(BorderFactory.createEmptyBorder(5,5,5,5));
        return p;
      public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable() {
          public void run() { createAndShowGUI(); }
      public static void createAndShowGUI() {
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        frame.getContentPane().add(new AnimatedCursorTest().makeUI());
        frame.setSize(320,240);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    }

  • How Do I Load An Animated GIF Into PictureBox Control From Byte Array?

    I'm having a problem with loading an animated GIF int a picturebox control in a C# program after it has been converted to a base64 string, then converted to a byte array, then written to binary, then converted to a base64 string again, then converted to
    a byte array, then loaded into a memory stream and finally into a picturebox control.
    Here's the step-by-step code I've written:
    1. First I open an animated GIF from a file and load it directly into a picturebox control. It animates just fine.
    2. Next I convert the image in the picturebox control (pbTitlePageImage) to a base64 string as shown in the code below:
                    if (pbTitlePageImage.Image != null)
                        string Image2BConverted;
                        using (Bitmap bm = new Bitmap(pbTitlePageImage.Image))
                            using (MemoryStream ms = new MemoryStream())
                                bm.Save(ms, ImageFormat.Jpeg);
                                Image2BConverted = Convert.ToBase64String(ms.ToArray());
                                GameInfo.TitlePageImage = Image2BConverted;
                                ms.Close();
                                GameInfo.TitlePageImagePresent = true;
                                ProjectNeedsSaving = true;
    3. Then I write the base64 string to a binary file using FileStream and BinaryWriter.
    4. Next I get the image from the binary file using FileStream and BinaryReader and assign it to a string variable. It is now a base64 string again.
    5. Next I load the base64 string into a byte array, then I load it into StreamReader and finally into the picturebox control (pbGameImages) as shown in the code below:
    byte[] TitlePageImageBuffer = Convert.FromBase64String(GameInfo.TitlePageImage);
                            MemoryStream memTitlePageImageStream = new MemoryStream(TitlePageImageBuffer, 0, TitlePageImageBuffer.Length);
                            memTitlePageImageStream.Write(TitlePageImageBuffer, 0, TitlePageImageBuffer.Length);
                            memTitlePageImageStream.Position = 0;
                            pbGameImages.Image = Image.FromStream(memTitlePageImageStream, true);
                            memTitlePageImageStream.Close();
                            memTitlePageImageStream = null;
                            TitlePageImageBuffer = null;
    This step-by-step will work with all image file types except animated GIFs (standard GIFs work fine). It looks like it's just taking one frame from the animation and loading it into the picturebox. I need to be able to load the entire animation. Does any of
    the code above cause the animation to be lost? Any ideas?

    There is an ImageAnimator so you may not need to use byte array instead.
    ImageAnimator.Animate Method
    http://msdn.microsoft.com/en-us/library/system.drawing.imageanimator.animate(v=vs.110).aspx
    chanmm
    chanmm

  • Resized animated gif ImageIcon not working properly with JButton etc.

    The problem is that when I resize an ImageIcon representing an animated gif and place it on a Jbutton, JToggelButton or JLabel, in some cases the image does not show or does not animate. More precicely, depending on the specific image file, the image shows always, most of the time or sometimes. Images which are susceptible to not showing often do not animate when showing. Moving over or clicking with the mouse on the AbstractButton instance while the frame is supposed to updated causes the image to disappear (even when viewing the non-animating image that sometimes appears). No errors are thrown.
    Here some example code: (compiled with Java 6.0 compliance)
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class Test
         public static void main(String[] args)
              new Test();
         static final int  IMAGES        = 3;
         JButton[]           buttons       = new JButton[IMAGES];
         JButton             toggleButton  = new JButton("Toggle scaling");
         boolean            doScale       = true;
         public Test()
              JFrame f = new JFrame();
              f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JPanel p = new JPanel(new GridLayout(1, IMAGES));
              for (int i = 0; i < IMAGES; i++)
                   p.add(this.buttons[i] = new JButton());
              f.add(p, BorderLayout.CENTER);
              f.add(this.toggleButton, BorderLayout.SOUTH);
              this.toggleButton.addActionListener(new ActionListener() {
                   @Override
                   public void actionPerformed(ActionEvent e)
                        Test.this.refresh();
              f.setSize(600, 300);
              f.setVisible(true);
              this.refresh();
         public void refresh()
              this.doScale = !this.doScale;
              for (int i = 0; i < IMAGES; i++)
                   ImageIcon image = new ImageIcon(i + ".gif");
                   if (this.doScale)
                        image = new ImageIcon(image.getImage().getScaledInstance(180, 180, Image.SCALE_AREA_AVERAGING));
                   image.setImageObserver(this.buttons);
                   this.buttons[i].setIcon(image);
                   this.buttons[i].setSelectedIcon(image);
                   this.buttons[i].setDisabledIcon(image);
                   this.buttons[i].setDisabledSelectedIcon(image);
                   this.buttons[i].setRolloverIcon(image);
                   this.buttons[i].setRolloverSelectedIcon(image);
                   this.buttons[i].setPressedIcon(image);
    Download the gif images here:
    http://djmadz.com/zombie/0.gif
    http://djmadz.com/zombie/1.gif
    http://djmadz.com/zombie/2.gif
    When you press the "Toggle scaling"button it switches between unresized (properly working) and resized instances of three of my gif images. Notice that the left image almost never appears, the middle image always, and the right image most of the time. The right image seems to (almost) never animate. When you click on the left image (when visble) it disappears only when the backend is updating the animation (between those two frames with a long delay)
    Why are the original ImageIcon and the resized ImageIcon behaving differently? Are they differently organized internally?
    Is there any chance my way of resizing might be wrong?

    It does work, however I refuse to use SCALE_REPLICATE for my application because resizing images is butt ugly, whether scaling up or down. Could there be a clue in the rescaling implementations, which I can override?
    Maybe is there a way that I can check if an image is a multi-frame animation and set the scaling algorithm accordingly?
    Message was edited by:
    Zom-B

  • Animated .gif files

    I have been using an older version of Photoshop Elements for a long time but just got a new MacPro and decided it's time to upgrade my PSE.  But maybe not....I downloaded the Photoshop Elements Trial version to check out if it's really worth upgrading or not and I think I'm in trouble. I have a ton of animated .gif files and they do not appear to open in the familiar "layers".  i read through some of these discussion threads and I think you're saying that if I use the current version of Photoshop Elements I will not be able to edit my old .gif files.  I did try making new layered files and save them for the web with animation and that seemed to work.  But if I'm going to lose the ability to edit my old .gif files I'm not sure I want to upgrade.
    Can someone clarify this for me please.  Maybe it's just a matter of switching from Elements to CS4, but I thought from the descriptions of the programs as provided in the Products section that I fit more with the Elements program.....maybe not???? 
    And this does not even consider that I haven't tried to load my older version on the new intel machine yet, it may not even run if I try that.
    I do, for about 20% of my computing time use "that other" platform, but I don't like it, I much prefer my wonderful Mac machines.
    thanks for your help
    Leigh

    Thank you for your offer, I do appreciae it.  But I think the better question to ask at this point is :  What is the last version of Photoshop Elements that supports editing animated gif files.  This is too important to me to lose this ability and after checking further I see CS4 is out of my price and needed features range. I would rather hang on to my old laptop to manipulate photos than lose the ability to edit my .gif files.
    Can anybody help with this question?

  • Animated GIF - Fastest frame rate?

    I am trying to create a sort of lightning effect and would like to flip through three or four frames super quickly (for the flash effect).
    Problem is that in my animation settings, even if i set the frame duration to 1/100, the frames still show for like half a second each. Really does NOT come off like a lightning strike...
    Is there some sort of trick to making the frames flip faster?
    Or maybe a limitation on animated GIFs that I am not aware of?
    On a side note, would Flash be a better tool for animated GIFs?

    Are you using photographs in the animation? Is the animation large (what are its dimensions)? If yes. it could be the complexity of the image causing the delay. The more complex the image, the longer it takes the browser to render it. GIF animations should be small and the imaes it contains posterlike vector images. Flash might be the best program to use for your animation.

  • Animated gif looping doesn't work in safari

    I made an animated gif through the animation option in Photoshop (used to use Image Ready, but now use photoshop/animation view).  Anyway, it is a super simple gif with eight frames set to loop twice.  When saved and then put into an HTML page, it loops twice on a PC using IE, and on a Mac, it plays correctly using Firefox, but in Safari it only plays once.  As an experiment, I set it to play once and it "behaves" correctly on all browsers. Similarly, if I set it to  play "forever" -- it behaves as expected on all browsers. BUT, any choice of number of loops cause inconsistency.  In Safari, it always plays one less time than it was "programmed" to play.  Does anybody have any advice on this? 
    Thanks.

    I believe there is a way to have two versions of say the gif run the main one and one with three lops and tell you server not to load the first one if it detects safari but to load the second one with the right argument.
    Or try the new Safari 4 just released today.

  • Animated GIF in JTabbedPane - repaint madness!

    Loading and animated GIF into the icon for a JTabbedPAne just works, but it causes the paintComponent method on the main part of the panel to be called repeatedly. Anyway to distinguish between the two areas? The icon repaints automatically but I don't want to have to repaint the rest of the panel unnecessarily.

    I've run into the same problem simon, the only way I came over this was to do my own animation for the gif. Bit of a bother really. Anyone have any other solutions?

  • Animated gif flickering

    animated gif images are flickering:
            final ImageView imgView = new ImageView();
            final Image tempImg = new Image(getClass().getResource("logo1.gif").toExternalForm());
            imgView.setImage(tempImg);
            imgView.setLayoutX(50);
            imgView.setLayoutY(50);
            root.getChildren().add(imgView);
            primaryStage.setScene(scene);
            primaryStage.show();few gif images works fine...most of the images dances here and there
    eg: http://www.nonstopgifs.com/animated-gifs/games/games-animated-gif-002.gif
    how to avoid this flickering
    some images wrks fine in SWING .. which flickers in JavaFX 2.0
    please help
    Edited by: Vj on Feb 21, 2012 3:03 PM

    the url you had given is forbidden to me.JavaFX has an open issue tracking system.
    When you go to the link http://javafx-jira.kenai.com , click on Sign Up for an account and you can file a bug.
    https://forums.oracle.com/forums/ann.jspa?annID=1713
    Could you do me a favor to file this bug to the JavaFx development team?Sorry, it does not make sense for me to file a bug without the actual GIF images which are causing issues.
    Please go to the JavaFX issue tracker and file a bug with sample GIF images so that the person investigating the issue is able to replicate and debug it.
    Thanks, John

  • How can I edit an animated GIF?

    is there a way to add a animated GIF into your work, when I try to add one I am told that it will be a single layer. I downloaded a GIF from the web and trying to incorparate it into a web site header.

    Well, you are in luck, sort of. You have all the apps needed to create an animated gif. However that does not mean that the image you download was already or not. It could be a single image.
    A couple of things to go over
    1) When downloading from the net make sure you have permission to use that image before sharing with the public, as the image is protected by copyright laws in the US. (Images that state - Permission to use commercially, copyright free, common law licence - Generally are meant to share with the general public, granted that you post somewhere who you got the image from(the Least anyone can do it give credit where credit is due)
    2)Since you have the Master Collection or the CS4 Master Suite, you have every app that is need to create your own works of art. Photoshop, After Effects, Premeire pro are all capable of creating animated gifs. With the latter two being easier than photoshop.
    Since you have CS4 photoshop and this is the photoshop forum, we will keep it there.
    The version of Photoshop that comes in the master suite is the extended version of photoshop which is require for most of the animations it can do. Though, think and am not certain that the standard version can create animated gif files.
    OK, ok we got a lot of mumbo jumbo above so lets get into how to create an animated gif.
    First we need to determine if we are editing an animated gif or creating one from scratch. To load an animated gif all you need to do is file>open then select the file. Simple enough.
    The file will place each frame onto its own layer and if you have the animation panel open (If not select Windows>Animation ) Each frame will be placed there as well.
    Lets say we are going to edit a frame or better yet introduce a new frame. In the upper right hand corner of the animation panel is a small icon. Clicking it will pop up a menu. In that menu select delete animation. Don't worry your layers are safe, it only removes the frames from the animation panel.
    Now you can either change something in one of the layers or add a layer where you want the frame intoduced.
    When you are done you can select that same icon in the animation panel to pop up the menu and select Make frames from layers This will place all the layers back into the animation panel. This has to happen in order to save an animated gif.
    You can now use the File>save to web or File>Save to web and devices (This optiuon changed during one of the version, I don't recall so both are listed or look for something close to that)
    Select Gif for the format then the save button, where you can choose a location and file name. It will automatically add a hyphen between any words that normally are spaces for the web.
    OK, If you read the above, you probably alread realize how to create one from scratch. Just add a new layer for each frame and follow the steps above to add it to the animation panel and save for web.
    I know it sounds like a lot, but once you have done it a few times, it actually fairly simple.
    OK, Bonus round - What about After Effects and Premeire Pro?
    Well both of those apps Use a timeline instead of frames. Which makes them much simpler and more powerful for animations, since that is what they are dedicated to do.
    It is as simple as open the gif file, edit it, save it, done.
    I won't go into how the timeline works as that would require a long , long post. But once you understand it, it is much quicker and can do way more feature wise.
    One last thing, play around with it and see what it can do before commiting time to creating or editing a gif. It goes much easier once you get the hang of it.
    If you have any questions, issues, etc. just post away...
    Well, I got to go, I hope this helps.

  • Animated gif moving to fast

    I am trying to display an animated gif in a JLabel. My problem is that for some reason the animated gif speeds through the frames, instead of moving at the speed it was created at. Any idea what might be causing it.
    Below is the code I'm using to display the animated gif.
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.JDialog;
    import java.io.*;
    public class loadingScreen extends JDialog
         private JLabel loadingLabel;
         ImageIcon loadIcon = new ImageIcon("images/animated_loading.gif");
        This function makes the loadingScreen a dialog box which, when
        opened, limits the user to be only able to use this window until
        they close it.
         public boolean startLoadingScreen()
              Window owner = (Window) getParent();
              Dimension d = getSize();
              Rectangle r = owner.getBounds();
              int x = r.x + r.width/2;
              int y = r.y + r.height/2;
              setBounds(x, y, d.width, d.height);
              getCenter();
              setVisible(true);
              return true;
        This function is called by an outside program. It takes in the owner
        frame information. It takes in a string that will be the title of
        the dialog box.
         public loadingScreen(Frame owner,String title,boolean modality)     
              super(owner, title, modality);          
              displayWindow();
        This function makes the gui for the window
         public void displayWindow()
              setResizable(false);
              Box groupBox = Box.createVerticalBox();
              loadingLabel = new JLabel(loadIcon);
              groupBox.add(loadingLabel);
              Container dialogPane = getContentPane();
              dialogPane.setLayout( new FlowLayout() );
              dialogPane.add(groupBox);
              pack();
         private void getCenter()
              Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
              Rectangle frame = getBounds();
              setLocation((screen.width - frame.width)/2,(screen.height - frame.height)/2);
    }

    Thanks for the help. Once I editied the gif file everything worked fine. As a side note, I used Gimp to edit the file and when I tried saving it had a funny message. "Delay inserted to prevent evil CPU-sucking anim."
    Thanks for the help.
    Ricky

Maybe you are looking for

  • JQuery slideshow doesn't work

    Now that I have the javascript code in the right place in the head, and I have followed all the other instructions to get a jQuery slideshow into my webpage, are there any ideas why it doesn't function as a slideshow please? In browser preview, one p

  • Total in alv report

    hi everyone! there is an alv report  that runs correctly in dev system and shows the totals in the alv report. when the request is being transport to qa system, the alv report doesn't shows the totals line at all. i tried to transport the report seve

  • Fill-In-The-Blank drop-down list in HTML5 output

    I'm working in Captivate 7 (WIN) and developing for both SWF and HTML5 output, viewing courses in IE9 for Windows and Safari on iPad. I have a quiz containing a fill-in-the-blank question, using a drop-down list to select the correct answer, however

  • Display Image from database to JLabel component

    Am developig an application and i have successfully read and shown textual data in a JInternalFrame, the only issue is to display the photo in a JLabel. Am able to save the details and photo into the database. What do i need to do to show the photo?

  • Web folder on idisk????

    okay I am using iweb to make my site and publishing on .mac. I have my idisk sync turned on so I can see it on my desktop. now, I just published my site but I need to change a file that won't work the way I need it to in iweb so I have to hand code i