Thomas SMETS
Posts: 307
Nickname: tsmets
Registered: Apr, 2002
|
|
Work perfect but ...
|
Posted: May 20, 2002 3:24 PM
|
|
On my machine it work perfect in Win2K on the following : _ 1.1.8 _ 1.2.2 _ 1.3 _ 1.4 May be should you change the code like this :package test.lang;
import java.awt.*;
public class Geluid
{
public static void main(String [] args)
{
for(int i=0;i<20;i++)
{
System.out.println("Ik piep");
Toolkit.getDefaultToolkit().beep();
try
{
Thread.sleep(1000);
} catch (Exception e)
{}
}
}
}
The reason is : 10 / 1000 is may be too short & all the beep (actually it is more "ding" than "beep" :-) ) are not well separated.
Thomas SMETS, SCJP2 - Brussels
p.s. : I have no probs with dutch but could you please make sure all your code is in English only, it may bother / scare some to see some no english signs (unless tackling multilingualism & internationnalization issues)
|
|