Topic: 版主,老问题请教!

  Print this page

1.版主,老问题请教! Copy to clipboard
Posted by: sc33
Posted on: 2003-09-23 20:22

不好意思,是写错了是:
titleLabel.setIcon(new ImageIcon(FaceFrame.class.getResource("title.gif")));
gif也是动画格式,就是不动,只显示第一桢的图形

2.Re:版主,老问题请教! [Re: sc33] Copy to clipboard
Posted by: scottding
Posted on: 2003-09-23 20:30

Java 不自动支持GIF的动画的。

3.Re:版主,老问题请教! [Re: sc33] Copy to clipboard
Posted by: archonLing
Posted on: 2003-09-24 08:05

sc33 wrote:
不好意思,是写错了是:
titleLabel.setIcon(new ImageIcon(FaceFrame.class.getResource("title.gif")));
gif也是动画格式,就是不动,只显示第一桢的图形


I have used attached animated gif through JLabel(new ImageIcon(String filename)) constructor. It works just fine. Could it be a gif format issue?

4.Re:版主,老问题请教! [Re: sc33] Copy to clipboard
Posted by: sc33
Posted on: 2003-09-24 08:53

archonLing

I think so. Must the gif-format to do! I will try another.

My English is pool. I hope say it clear.

5.Re:版主,老问题请教! [Re: sc33] Copy to clipboard
Posted by: sc33
Posted on: 2003-09-24 09:02

我已经测试过了,跟gif格式有关!archonLing贴下的Gif图测试通过!

6.Re:版主,老问题请教! [Re: sc33] Copy to clipboard
Posted by: scottding
Posted on: 2003-09-24 09:08

恩,,,看来我的看法有问题了,得找点资料来考证一下。


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923