LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-24-2011, 01:27 AM   #1
thuan1975
LQ Newbie
 
Registered: May 2005
Posts: 14

Rep: Reputation: 0
beep, beep ... waring on java code


hi all.

I use Textpad and SciTE to coding java under Win7 and Fedora Core 13.
but with source code as below, I see different to Win7 and FC13.
under Win7, this code show beep, beep ... warning
but
under FC3, no thing warning.
(note, this source code is execute under only one machine (I install dual OS on one machine) and sound card can play very good, I can hear mp3 on both Win7, FC13)

If you have any solution to beep, beep ... warning on FC13.
Please, help me.

Thank you, for your reply.




import java.awt.*;
import java.io.*;

public class timer_beep {
public static void main(String args[])throws IOException {
try{
System.out.println("BeepTesting start!");
for(int x=0;x<=9;x++) {
System.out.println(x);
Toolkit.getDefaultToolkit().beep();
Thread.sleep(2000);
} //for
System.out.println("BeepTesting end!");

System.out.println("BeepTesting start!");
boolean myBeep = true;
int i=0;
while(myBeep) {
System.out.println(i);
i++;
Toolkit.getDefaultToolkit().beep();
Thread.sleep(2000);
if(i==10){
myBeep=false;
}//if
}//while
System.out.println("BeepTesting end!");
} //try
catch(InterruptedException e) {
System.out.println("InterruptedException:" + e);
}
} //main
} //class
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: beep-beep from Brazil! LXer Syndicated Linux News 0 11-11-2010 08:00 PM
Debian goes Beep Beep? SuperDude123 Linux - Newbie 3 12-20-2009 02:49 AM
How to disable the warning sound "beep, beep" ICO Red Hat 1 04-04-2006 01:59 AM
Beep Beep! Linux~Powered Linux - Hardware 3 05-18-2004 06:28 AM
Beep code Oakstaff Linux - Newbie 4 04-11-2004 07:31 AM


All times are GMT -5. The time now is 10:58 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration