Re: Animated GIF display in JFrame vs. JApplet
- From: "Qu0ll" <Qu0llSixFour@xxxxxxxxx>
- Date: Thu, 26 Jun 2008 19:40:04 +1000
"Daniele Futtorovic" <da.futt.news@xxxxxxxxxxxxxxx> wrote in message news:g3repq$b9u$1@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
On 2008-06-24 14:17 +0100, Qu0ll allegedly wrote:I have an animated GIF which I would like to display in all its animated glory in a JFrame based application and in a JApplet. The GIF animates when displayed in the JFrame by using the paintIcon() method of ImageIcon but the same code only displays a static icon in the applet.
Is there a reason for this and/or a way to get it to work in the applet? I am not trying to do anything sophisticated with it just yet, I simply create a JPanel and override its paintComponent() method to paint the ImageIcon. As I said, it works fine when the JPanel is in a JFrame but not in a JApplet.
Simply put your Icon in a JLabel. Shouldn't be necessary to interfere
with paintComponent() at all.
This MAY solve your problem.
Thanks but it just doesn't want to animate inside an applet even when in a JLabel :-(
--
And loving it,
-Qu0ll (Rare, not extinct)
_________________________________________________
Qu0llSixFour@xxxxxxxxx
[Replace the "SixFour" with numbers to email me]
.
- Follow-Ups:
- Re: Animated GIF display in JFrame vs. JApplet
- From: Andrew Thompson
- Re: Animated GIF display in JFrame vs. JApplet
- References:
- Animated GIF display in JFrame vs. JApplet
- From: Qu0ll
- Re: Animated GIF display in JFrame vs. JApplet
- From: Daniele Futtorovic
- Animated GIF display in JFrame vs. JApplet
- Prev by Date: Re: scrollbars and boxes
- Next by Date: Re: how to use a byte array to create image
- Previous by thread: Re: Animated GIF display in JFrame vs. JApplet
- Next by thread: Re: Animated GIF display in JFrame vs. JApplet
- Index(es):
Relevant Pages
|