Animated icon for a TopComponent

Paco Barrera <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <CAFS-qLmn-pSLqLSFQbyXabAWC4HFWAA6qYnXPMrEmq1cUdy2_A@mail.gmail.com>
It is possible to set an animated image to a TopComponent?

I've tested to assign an animated gif in this way but not success:
[code]
TopComponent tc = WindowManager.getDefault().getRegistry().getActivated();
                            String ICON_ANIMATED =
"file:/com/aws/experiment/resources/expRunning.gif";
                            Image iconAnimated;
                            try {
                                iconAnimated = new ImageIcon(new
URL(ICON_ANIMATED)).getImage();
                                tc.setIcon((Image) iconAnimated);
                            } catch (MalformedURLException ex) {
                                Exceptions.printStackTrace(ex);
                            }
[/code]


Any help is appreciated.

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Libre
de virus. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.