I have a problem with this...
import javax.swing.*;
import sun.audio.*;
import java.awt.event.*;
import java.io.*;
public class PikaPlatformer
{
//-----------------------------------------------------------------
// Creates and displays the application frame.
//-----------------------------------------------------------------
public static void main (String[] args)
{
JFrame frame = new JFrame ("Direction");
frame.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add (new PikaPlatformerPanel());
frame.pack();
frame.setVisible(true);
}
}
How would I insert sound into this I just want music to play in my game. Any suggestions?( this is just the jFrame)