The AudioClip Interface
The AudioClip interface defines these
methods: play( ) (play a clip from
the beginning), stop( ) (stop
playing the clip), and loop( ) (play
the loop continuously). After you have loaded
an audio clip using getAudioClip( ),
you can use these methods to play it.
The AppletStub Interface
The AppletStub interface provides the means
by which an applet and the browser (or applet viewer) communicate. Your code
will not typically implement this interface.
Outputting to the Console
Although
output to an applet’s window must be accomplished through GUI-based methods,
such as drawString( ), it is still
possible to use console output in your applet—especially for debugging
purposes. In an applet, when you call a method such as System.out.println( ), the output is not sent to your applet’s
window. Instead, it appears either in the console session in which you launched
the applet viewer or in the Java console that is available in some browsers.
Use of console output for purposes other than debugging is discouraged, since
it violates the design principles of the graphical interface most users will
expect.
Related Topics
Privacy Policy, Terms and Conditions, DMCA Policy and Compliant
Copyright © 2018-2024 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.