Re: Animated icon for a TopComponent
Oliver Rettig <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Organization | ORAT |
| Message-ID | <[email protected]> |
Hi,
thats an interesting question. Some years ago I have tried to find the code
which displays an icon on different position in nebeans platform components but
I were not successful. Good luck and I am also interested in a feature which
makes it possible to show animated icons at any position in an netbeans app,
e.g. also in toolbars.
best regards
Oliver
> 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_campai
> gn=sig-email&utm_content=webmail> Libre
> de virus. www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campai
> gn=sig-email&utm_content=webmail> <#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
--
http://www.motion-science.org
http://www.gewerbehof-karlsruhe.de
http://www.friedensdenkmal-karlsruhe.de
http://www.quatrizeps.de
http://www.fokolocos.de