Media Section Index | Page 7
Can I use Java 3D with Swing components?
Java 3D has its own version of AWT Canvas object named Canvas3D. Since javax.media.j3d.Canvas3D is derived from java.awt.Canvas, the developer faces the same problems faced when mixing Heavy-Weigh...more
What's the difference between VRML and Java 3D?
Here is an excerpt from the VRML FAQ:
"Java3D is a programming
API, and the model it uses is that people will write programs which cause geometry to appear and do things. VRML
is scene bas...more
Are there any FAQs available on Java 3D?
Besides Sun's official FAQ at http://java.sun.com/products/java-media/3D/forDevelopers/java3dfaq.html, the Java 3D community site has one available at http://www.j3d.org/faq/.more
How can I use Java 3D in an applet?
There is a step-by-step procedure on how to use Java3D in an applet at the following site:
http://www.j3d.org/faq/browser.html
How do I use antialiasing in Java?
In your paint() method, add the following hint at the top of the method:
((Graphics2D)g).setRenderingHint
(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
[FAQ Manage...more
Where can I download Java Speech API and get examples of how to use it?
Sun maintains a list of implementations available at http://java.sun.com/products/java-media/speech/forDevelopers/jsapifaq.html#implementation. Many of the implementations, like IBM's include exam...more
Can I display a Windows Media/Real Media video clip in an AWT/Swing application or applet?
Java Media Framework may be your best hope -
http://java.sun.com/products/java-media/jmf/index.html
Plus the new functionality in JDK1.3 may be useful too -
http://java.sun.com/j2se/1.3/docs/...more
How can I play/record audio in Java?
The basic answer to sound support in Java is to check out the
Java Sound API which is part of the
Java Media Framework API.
If you just want simple audio playback from an applet, check out
How...more
Where can I find providers of Java Telephony API (JTAPI) implementations?
Until the 2.0 specification comes out, it looks like providers are few and far between. IBM does have an implementation for the 1.2 specification available from http://www.alphaworks.ibm.com/tech/...more
Where do I get the Java Media Frameworks classes that make up the javax.media.* packages?
You get Sun's reference implementation from http://java.sun.com/products/java-media/jmf/index.html.
Where can I learn more about Java Telephony interface (JTAPI)?
Here are some useful links for obtaining more information on JTAPI:
JTAPI home page@Sun
http://java.sun.com/products/jtapi/
Archives of JTAPI-INTEREST@JAVA.SUN.COM
http://archives.java.sun.com...more
Can I use MediaTracker with audio files?
While it looks like the developers of the class intended for it to support additional media types, the AWT MediaTracker will only track the loading of Image files.
Can I find out when an audio file is done playing?
Short of using the Java Media Framework (JMF), there is no support for discovering when an audio file is done playing.
How can I control the volume of the sounds I play from my Java program?
Java provides no support for increasing or decreasing the volume of the user's computer. Your users would need to use the controls native to their computers to change the volume.
How can I signal the user audibly with a beep?
The Toolkit class contains a beep() method for this purpose:
Toolkit.getDefaultToolkit().beep();
or, if in a Component subclass:
getToolkit().beep();
more