Re: Animated icon for a TopComponent
Dmitry Avtonomov <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAMMjtf-PPA7ZhnTsN7Y0EDLjggXbzu90K4yC4yuhmEM2FWgZkg@mail.gmail.com> |
Look into TC.setBusy() method, it plays an animated indefinite progress bar in the tab of the TC. Dmitry On Apr 26, 2016 05:44, "Paco Barrera" <[email protected]> wrote: > 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> > <#m_8947346349863053241_DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2> >