Olá Galera…
Achei esse cód. em java sobre um Player, queria so saber de duas coisas, só usando o AWT, não preciso ter mais nenhuma classe para tocar a música?
Ele suporta MP3?
Valeu pela atenção.
import java.awt.;
import java.awt.event.;
import javax.media.;
import javax.media.protocol.;
import javax.media.control.;
import java.io.;
/*******************************************************************************
- A Graphical application allowing the user to choose the media they wish to
- play. PlayerOfMedia presents a Dialog in which the user may enter the URL of
- the media to play, or select a file from the local system.
-
@author Spike Barlow
******************************************************************************/
public class PlayerOfMedia extends Frame implements ActionListener,
ControllerListener {
/** Location of the media. */
MediaLocator locator;
/** Player for the media */
Player player;
/** Dialog for user to select media to play. */
Dialog selectionDialog;
/** Buttons on user dialog box. */
Button cancel, open, choose;
/** Field for user to enter media filename */
TextField mediaName;
/** The menus */
MenuBar bar;
Menu fileMenu;
/** Dialog for informing user of errors. */
Dialog errorDialog;
Label errorLabel;
Button ok;
/** Graphical component for controlling player. */
Component controlComponent;
/** Graphical component showing what isbeing played. */
Component visualComponent;
/** Graphical component to show download progress. */
Component progressBar;
/** Sizes to ensure Frame is correctly sized. */
Dimension controlSize;