import java.awt.*;import java.awt.event.*;import javax.swing.*;import com.borland.jbcl.layout.*;import java.applet.*;import java.net.*;public class Frame1 extends JFrame { JPanel contentPane; XYLayout xYLayout1 = new XYLayout(); JButton jButton1 = new JButton(); /**Den Frame konstruieren*/ public Frame1() { enableEvents(AWTEvent.WINDOW_EVENT_MASK); try { jbInit(); } catch(Exception e) { e.printStackTrace(); } } /**Initialisierung der Komponenten*/ private void jbInit() throws Exception { //setIconImage(Toolkit.getDefaultToolkit().createImage(Frame1.class.getResou rce("[Ihr Symbol]"))); contentPane = (JPanel) this.getContentPane(); jButton1.setText("jButton1"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(ActionEvent e) { jButton1_actionPerformed(e); } }); contentPane.setLayout(xYLayout1); this.setSize(new Dimension(400, 300)); this.setTitle("Frame-Titel"); contentPane.add(jButton1, new XYConstraints(90, 60, 173, 103)); } /**Überschrieben, so dass eine Beendigung beim Schließen des Fensters möglich ist.*/ protected void processWindowEvent(WindowEvent e) { super.processWindowEvent(e); if (e.getID() == WindowEvent.WINDOW_CLOSING) { System.exit(0); } } void jButton1_actionPerformed(ActionEvent e) { try{ AudioClip musik = java.applet.Applet.newAudioClip (new URL ("file://musik/klick.wav")); //AudioClip musik = java.applet.Applet.newAudioClip (new URL ("file://C:/klick.wav")); <---- habe es auch schon so probiert musik.play(); } catch(MalformedURLException mex){ mex.printStackTrace(); } }}