Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Play animation in Java Application.

Posted on 2004-10-16
5
250 Views
Last Modified: 2008-02-20
Hello, it's me again. :)

I'd like to play animated files in my Java Application. Such formats as: .GIF, .AVI, .WAV.
Unless there's a rather easy way to do this already, are there any recommended packages to use?

Any other info is much appreciated. :)

Thanks in advance,
[r.D]
0
Comment
Question by:DrWarezz
5 Comments
 
LVL 24

Accepted Solution

by:
sciuriware earned 150 total points
ID: 12326752
Just put such an animated gif in a JLabel and your movie is ready.
Avi's must be converted as far as I know.
.wav is a sound matter: the other door please, but truely supported.
;JOOP!
0
 
LVL 9

Author Comment

by:DrWarezz
ID: 12326942
>".WAV"
Woops, sorry, I ment ".MOV" (very easy to make that mistake :P hehe). But, don't worry about the format.

So, if I place an animated GIF into a JLabel, it will play the animation? :) (cool!)

>"Avi's must be converted as far as I know."
Could you elaborate a bit please? What sort of conversion must be made, and how do I make this conversion?

Thanks!
[r.D]
0
 
LVL 92

Assisted Solution

by:objects
objects earned 150 total points
ID: 12330337
0
 
LVL 18

Assisted Solution

by:armoghan
armoghan earned 200 total points
ID: 12335886
For GIF use Label as said by sciuriware
for MOV and AVI u need to use JMF as said by objects
already said these by two learned people..


I would just add this lnik.. Which will help in playing AVI and MOV files.. its kind of a media player

http://rsb.info.nih.gov/ij/plugins/jmf-player.html
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12335911
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question