| |

VerySource

 Forgot password?
 Register
Search
View: 814|Reply: 4

SOLVED: Picture display problem in Applet

[Copy link]

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-2-13 13:00:01
| Show all posts |Read mode
RT, I showed a GIF animation on jLabel, but as soon as the CLICK event of the button is executed, the GIF does not move. How do heroes solve it? The code is as follows
  ImageIcon logoGif = new ImageIcon (imagepath);
  jLabel Label = new jLabel (logoGif);
Reply

Use magic Report

1

Threads

51

Posts

32.00

Credits

Newbie

Rank: 1

Credits
32.00

 China

Post time: 2020-4-18 15:45:01
| Show all posts
Show but not move?
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-5-14 11:30:03
| Show all posts
Yes, for example, an animation of a rabbit eating radish. When the button is pressed, the rabbit will not move ...
Reply

Use magic Report

0

Threads

9

Posts

9.00

Credits

Newbie

Rank: 1

Credits
9.00

 China

Post time: 2020-8-5 12:15:01
| Show all posts
Does it support GIF animation?
Need continuous frame processing
Don't just put it on and move it yourself
Reply

Use magic Report

1

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-8-6 23:00:01
| Show all posts
I don’t believe you can try it yourself...GIF is inherently dynamic, there is no need to use the original method to change the picture...
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list