Re: Animated icon for a TopComponent
Paco Barrera <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAFS-qLk=fs2ajiNiYDQmZzCqnDUB_XkD+G6ZLeAR2QmkZumDCw@mail.gmail.com> |
Sorry, I'm wrong.....the method I had mentioned previously (paintIcon) isn't from TopComponent class, but a AbstractSavable inner class that I had in the same file. Sorry for the mistake. I'm read about "BusyTabsSupport" that has method "getBusyIcon" but it has any method to set the busy icon. If I find any solution I'll post it here. 2016-04-26 19:55 GMT+02:00 Oliver Rettig <[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 >