Article View: borland.public.jbuilder.java.language
Article #7956Re: Beep!
From: Dave Cullen
Date: Thu, 03 May 2001 14:47
Date: Thu, 03 May 2001 14:47
40 lines
1869 bytes
1869 bytes
Toolkit is an abstract class and you can't instantiate an object of that type. You can get the current Toolkit by using the getToolkit() method from any container in your program. Then call beep() from that... static Frame1 frame = new Frame1(); // or whatever your container is... frame.getToolkit().beep(); // worked for me drc "Kotis" <kkot@aegean.gr> wrote in message news:3af01937_1@dnews... > > I am trying to create a sound using the beep() function of the > java.awt.Toolkit class. > > Toolkit beeper; > beeper.beep(); > > But there is no sound produced.Any hints? > > -- > Mr. K. I. Kotis > IT Manager > Prefecture of Samos > -------------------------------- > B.Sc Computation > Ph.D Student > University of the Aegean > -------------------------------------- > Samos > HELLAS > Tel: ++30 273 80298 > Fax: ++30 273 80297 > ISDN: ++30 273 89150 > Mobile:++30 974 822712 > http://www.samos.aegean.gr/icsd/kkot > > > >
Technical Details
Message-ID:
<3af16e5c_1@dnews>Path:
arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!hub1.nntpserver.com!news-in.nibble.net!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnewsReferences:
<3af01937_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,de5cc0daeb0d375 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-05-03 07:48:02 PST From: "Dave Cullen" <no_spam@mail.com> Newsgroups: borland.public.jbuilder.java.language References: <3af01937_1@dnews> Subject: Re: Beep! Date: Thu, 3 May 2001 10:47:55 -0400 Lines: 42 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 208.236.78.2 Message-ID: <3af16e5c_1@dnews> X-Trace: dnews 988900956 208.236.78.2 (3 May 2001 07:42:36 -0700) Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!cyclone-sjo1.usenetserver.com!news-out-sjo.usenetserver.com!hub1.nntpserver.com!news-in.nibble.net!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews