jvm linux

2003-09-05 Thread SANS Francois

Hello,

i ' am very interested by jdk version 1.4.2 for AMD x86_64

is this release already avalaible.

thank you for you answer.

francois

SOUND PROBLEM

2003-09-05 Thread slamet
Hello,


i'm using blackdown jdk 1.3 on Mandrake Linux OS and I am using KDE + arts.

i got problem when my simple apps doesn't produce sound. While on
Microsoft Windows, it works.

here is the code from the begining java programming books:

import javax.swing.*;
import java.awt.event.*;

public class PlayIt extends JApplet
{
   AudioClip clip;
   JButton button;
   final String play = "PLAY";
   final String stop = "STOP";

   public void init()
   {
String fileName = getParameter("clip");
clip = getAudioClip(getDocumentBase(),fileName);

button = new JButton(play);
button.addActionListener(new ActionListener()
 {
   public void actionPerformed(ActionEvent e)
   {
if (e.getActionCommand().equals(play))
{
  clip.loop();
  button.setText(stop);
}
else
{
clip.stop();
button.setText(play);
}
   }
 }
);

   getContentPane().add(button);
}
}

my question: is there any way to manage java to use particular sound
driver like oss or arts or esd?



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]