Results 1 to 2 of 2

Thread: musically stuck

  1. #1
    geork's Avatar
    geork is offline Member
    Join Date
    Jan 2008
    Posts
    14
    Rep Power
    0

    Default musically stuck

    hi all!
    i'm trying to play some music but it doesn't like the following:
    Java Code:
    import java.applet.AudioClip;
    import java.awt.FlowLayout;
    import javax.swing.JApplet;
    class ll {
    	private AudioClip sound1,currentSound;
    	 public void init(){
    	 setLayout( new FlowLayout() );
    	 sound1 = getAudioClip( getDocumentBase(),"musicsandstorm.wav");
    	 currentSound = sound1;
    	 }
    }
    and
    Java Code:
    class usell {
    	public static void main(String args[]){
    		new ll();
    	}
    }
    hope you can help

  2. #2
    geork's Avatar
    geork is offline Member
    Join Date
    Jan 2008
    Posts
    14
    Rep Power
    0

    Default

    (sorry, i forgot to say that ll extends JApplet)
    he who laughs last probabely just got the joke

Similar Threads

  1. Stuck on Two Questions, Please Help
    By sylo18 in forum New To Java
    Replies: 5
    Last Post: 03-11-2008, 01:03 AM
  2. musically stuck cry for help 2
    By geork in forum New To Java
    Replies: 0
    Last Post: 02-07-2008, 02:09 PM
  3. Stuck and Frustrated.
    By jazzinspace in forum New To Java
    Replies: 7
    Last Post: 01-12-2008, 02:38 PM
  4. Replies: 3
    Last Post: 12-05-2007, 02:22 AM
  5. I am completely stuck
    By jpnym15 in forum New To Java
    Replies: 2
    Last Post: 11-14-2007, 06:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •