| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
_______________________________________________These are working fine for me on 6C115; can you be more specific?
This adaptation of your code doesn't work for me.
It prints 'beep' each time the button is pressed with no sound.
package com.example.beep;
import java.awt.*;
import java.awt.event.*;
public class Beep extends Frame
{
public Beep()
{
Button b = new Button("beep");
b.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
System.out.println("beep");
Toolkit.getDefaultToolkit().beep();
}
});
setLayout(new FlowLayout());
add(b);
}
public static void main(String[] args)
{
new Beep().setVisible(true);
}
}
MacOS X 10.1.5.
iMac G4/700 768Mb RAM
-- ----------------------------------------------------------
Out of the 10Base-T, through the router, down the T1, over the
leased line, off the bridge, past the firewall... nothing but Net.
| References: | |
| >Re: Missing beep (From: Paul Roebuck <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.