Media Section Index | Page 3
What video formats does the Java Media Framework (JMF) support?
The content formats supported in Sun's JMF 2.1.1 implementations
(latest as of the writing of this FAQ) are detailed at:
java.sun.com/products/java-media/jmf/2.1.1/formats.html
Note that the s...more
How can I save an image to disk in a standard image format?
The javax.imageio package provides this for you in Java 1.4. Previousl versions had no standard support, though you could add third party libraries to standard Java for this.
BufferedImage ou...more
Can I display a PNG image in an applet?
PNG support is not native to Java until 1.3. If you want to display it with a prior version of Java, like the 1.1 VM found in browsers, you must find support elsewhere. One such source is Jimi.
Fo...more
How do I play a sound on the server from inside a servlet? The Java Sound API doesn't seem to work.
[More Q: I am trying to use java sound API in my servlet based application.
One of the subclass in my 'playSound.class' extends thread. I am loading audioClip inside this thread, which is not wo...more
How do you play audio data contained in a byte[]?
The Java Sound API contains support for playing byte arrays. Given that this question was submited to the Applets FAQ, I'm assuming you're not using a Java runtime new enough to support that. If y...more
Where can I learn (more) about using the Java Swing windowing components to build GUIs (Graphical User Interfaces)?
Check out the jGuru Swing
FAQ.
How can I use the Java 2D API in an applet?
The Java environment in browsers is based on Java 1.1.x. The Java 2D API is part of the Java 2 standard. In order to use the Java 2D API in an applet, you need to use the Java Plug-in, which allow...more
What are the advantages and disadvantages of Java Advanced Imaging over dealing Images with AWT?
Early versions of the Java AWT provided a simple rendering package suitable for rendering common HTML pages, but without the features necessary for complex imaging. The early AWT allowed the gener...more
How do I rotate my view using Java 3D?
Java 3D does not have a camera per se, but you can
move the ViewPlatform, which moves your view into
the world (and thus, appears to move the "camera").
More information on this...more
Does Java 3D provide any built in support for collision detection between two or more objects?
Yes, Java 3D does provide for collision detection
functionality in its API. As a starting point, I would suggest reviewing the getCollidable and setCollidable
methods on the Node object. ...more
Can I perform edge detection and edge enhancement of an image using Java?
Yes, you can use Java 2D to perform various image manipulations, including edge detection and enhancement.
There are several examples of image manipulation, including edge detection, in my Java...more
Is it possible to make a snapshot image (JPEG) from the current scene in a Java 3D program?
Is it possible to make a snapshot image (JPEG)
from the current scene in a Java 3D program?
I need to learn more about printing in JDK 1.1; I cannot use Java 2 and its Java 2D printing support. Can you suggest any references?
I need to learn more about printing in JDK 1.1; I cannot
use Java 2 and its Java 2D printing support. Can you suggest
any references?more
Can you recommend any resources to learn more about printing using Java 2D?
Sun has posted articles on Java 2D printing on the Java Developer Connection. They give a good
overview and provide a lot of example code. Check the articles out for yourself at:
java.s...more
How does Java 3D compete with OpenGL when it also depends on it?
As you mention, some implementations of Java 3D do in fact sit on top of underlying OpenGL implementations. (For details, see the related FAQ entry on platforms supporting Java 3D.
The reason i...more