Sound application help

here is another example of a sound application that does not work. can any one help me fix it??
import java.awt.*;
import java.applet.*;
import java.net.URL;
public class AnotherAudioAttempt{
  public static void AlertSound(){
    try{
      java.io.File file = new java.io.File("file:///home/nova812/myJava/audio/siren.au");
      AudioClip welldoneclip = Applet.newAudioClip(file.toURL());
      welldoneclip.play();
    catch (Exception e){}
  public static void main(String[] argz){
    AlertSound();
}//end classRon_W

I did try System.in.read() but it didn't work either. However, going the the archives here I found a version of the following code. finally some code that works. I modified it so that it would play a sound when the app starts. Althoug the code works, pushing the play sound button to fast will cause the app to not play a sound for a long time. some tweeking is needed.
import java.awt.event.*;
import java.awt.*;
import java.applet.*;
import java.net.*;
import java.io.*;
public class PlaySound {
  public static void main(String args[]) {
  new PlaySoundFrame();
class PlaySoundFrame extends Frame implements ActionListener {
  Button playSound = new Button("Play Sound");
  PlaySoundFrame() {
    super();
    /* Add the window listener */
    addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent evt) {
      dispose(); System.exit(0);}});
    playSound.addActionListener(this);
    add(BorderLayout.NORTH,playSound);
    /* Size the frame */
    setSize(200,200);
    /* Center the frame */
    Dimension screenDim = Toolkit.getDefaultToolkit().getScreenSize
    Rectangle frameDim = getBounds();
    setLocation((screenDim.width - frameDim.width) / 2,
    (screenDim.height - frameDim.height) / 2);
    /* Show the frame */
    setVisible(true);
    playSnd();
public void playSnd(){
   AudioClip ac = null;
      try{
        ac = Applet.newAudioClip(new URL("file:///home/nova812/myJava/audio/siren.au"));
      catch(MalformedURLException mfe){
      System.out.println("BadURL!");
      if(ac != null)
        ac.play();
      else
        System.out.println("no sound!!");
  public void actionPerformed(ActionEvent evt){
    if (evt.getSource() == playSound){
      playSnd();
}Ron_W

Similar Messages

  • I have OS 10.9.4, and I can't change the basso alert sound for Reminders.  Works ok for the rest of the applications that use an alert sound.  Help?

    I have OS 10.9.4, and I can't change the basso alert sound for Reminders.  Works ok for the rest of the applications that use an alert sound.  Help?

    http://www.microsoft.com/mac/support
    http://answers.microsoft.com/en-us/mac/forum/macword?auth=1
    http://answers.microsoft.com/en-us/mac/forum/macoffice2011-macword/microsoft-wor d-for-mac-2011-will-not-open-error/ecc42616-6f49-40bb-b8f5-e21c711ea359

  • Sound Application Problems

    Hello,
    Ive been working on a small sound application that just plays music when is starts up. Ive got this:
    import java.applet.AudioClip;
    import java.applet.Applet;
    import javax.swing.*;
    import java.net.URL;
    class Soundf extends JFrame {
         public Soundf() {
              super("Sound");
              AudioClip p = null;
              try {
                   p = Applet.newAudioClip(new URL(new URL("file:z3-light_world1.mid"), "z3-light_world1.mid"));
              catch(Exception e){
                   System.out.println("error");}
              p.play();
              setVisible(true);
    class Sound {
         public static void main(String args[]) {
              JFrame f = new Soundf();
    }I dont get any errors, but it just doesnt play the mid file. Please help.

    p = Applet.newAudioClip(new URL(new
    URL("file:z3-light_world1.mid"),
    "z3-light_world1.mid"));The contructor URL( URL, String) (eg URL( new URL( "http://www.example.com" ), "index.html" )creates a URL of http://www.example.com/index.html.

  • RH9 application help "Contents & Index" broken

    I have been using RH9 for months now and I still fail to grasp how the RH9 application help is supposed to work.
    When I click the Help button in the main toolbar, I am supposed to choose from the available options. The option that looks TO ME like "normal" application online help functionality is the first one, called "Contents & Index".
    So I click it, and what happens? After a wait, what happens is that our default IE browser home page opens (which is our corporate intranet home page).
    So what the blazes am I supposed to do with THAT? Does that sound like "Contents & Index" to you? Well it doesn't to me either.

    And if you are on a 64 bit system, the path is likely to be:
    C:\Program Files (x86)\Adobe\Adobe Help\
    Personally I'd be shocked if the AIR runtime wasn't installed. I believe it gets installed when RoboHelp (or the Tech comms Suite) is installed.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • I have one of the old macbooks and wish to hook it up to my tv. do i need a mini dvi to hdmi adapter plus a 3 rca phono lead with a jack for the sound. please help as im useless at this stuff. cheers

    i have one of the old macbooks and wish to hook it up to my tv. do i need a mini dvi to hdmi adapter plus a 3 rca phono lead with a jack for the sound. please help as im useless at this stuff. cheers

    First we need to know which one of the 9 different models of MacBook you have. To see which model you have go to the Apple in the upper left corner and select About This Mac, then click on More Info (and then System Report if you’re running 10.7 Lion). When System Profiler comes up check the Model Identifier and post it back here.
    The Late 2008 model 5,1 Aluminum Unibody and the Late 2009 model 6,1 and Mid 2010 model 7,1 White Unibody have a Mini DisplayPort. The Early 2006 model 1,1 through Early 2008 model 4,1s plus the Early and Mid 2009 model 5,2s have Mini-DVI ports. Each would take a different adapter to connect with the TV.

  • Photoshop CS4 in-application help

    I am using the trial Photoshop CS4 and cannot get the in-application Help to work. the CS3 Help works just fine.
    When I launch Help from the Menu bar I am directed to the Adobe Site.
    When I launch the Adobe Help application from the Applications folder, I get the Help window, and when I click on the 'Help for' menu and Choose 'Adobe Photoshop CS4' I get this
    "This topic is in the Help system of another product. To view the topic, install that product. file:///Library/Application%20Support/Adobe/Help/en_US/Photoshop/11.0/help.html'
    I need 'Help' with 'Help'.
    Fitz

    What Buko says.
    Also, when you've opened that page, you'll see a little (
    very little) PDF icon at the top there, which gives you the option of downloading the whole Help site as a 40+MB PDF document to your drive. Useful if you're always connected to the Internet, but it has the downside of not benefiting from updates, additions and corrections.

  • Error while opening the application help

    Hello,
    We are trying to open the application help from the R/3. It is giving
    us the follwoing error.
    This is linked to the knowledge warehouse server 6.20.
    Error:
    SAP Internet Knowledge Server
    The IKS cannot display the page you asked for.
    Please contact the administrator if this problem persists.
    Additional infomation:
    RFC Error: System exception raised, connection closed (SIW_IKS_VAR_GET)
    RfcRc: <3>, ErrorInfo:
    The confuguration looks fine as per the note # 381266.
    The help is working fine previously.
    Thanks in advance.
    Best regards,
    Madhav.

    Hi Arun,
    Error due to incorrect installation of life cycle designer.
    check the below links for solution.. ( same issue ).
    Error Message "Error while Opening the Document"
    Error - Adobe Live Cycle designer
    Regards
    Srinivas

  • Application Help in IR and ID

    Hi Everyone... I am Varun, an XI Consultant.
            Would anyone help me in resolving this issue.
       I want  to <b>ENABLE</b> <b>Application Help TAB </b> in <b> HELP Menu </b>where we have in <b>Integration Repository </b> and <b>Integration Directory</b> screens.
          I Would appreciate if anyone would me in this regard.
    Regards,
    Varun Reddy.K

    Thanks, Jaime Farinos for you reply and that helped me alot..
    Now i could successfully get enable the APPLICATION HELP tab in the Help Menu in Integration Repository and Integration Directory.
    As you suggested me to implement note 839880 and i did the same
    As i gave the url as http://help.sap.com/saphelp_nw2004s/helpdata in com.sap.aii.docu.url and it worked well but which ever object i select in IR/ID only the above url is getting enabled because i gave that url as default.
    Now what i need is for example if i select Mapping Obects in Integration Repository or for example Sender Agreement in Integration Directory and when i press Application Help tab in Help Menu, then that correspoinding url of (Mapping Obects  or Sender Agreement ) of help.sap.com page should get opened respectively and so on.
    Hope you got my point.
    Please help me in this issue.
    Regards,
    Varun Reddy Kasireddy.

  • Application Help in Spanish

    Hello,
    On the site help.sap.com, there is no application help in spanish for:
    SAP ERP Central Component 6.0
    SAP ERP 6.0 – EHP2
    SAP ERP 6.0 – EHP3
    SAP ERP 6.0 – EHP4
    SAP ERP 6.0 – EHP5
    SAP ERP 6.0 – EHP6
    SAP ERP 6.0 – EHP7
    The last application help in Spanish was published with SAP R/3 Enterprise Release 4.70  in 2003.
    Somebody knows, when will sap publish application help in spanish?
    Kind regards,
    Milton.

    This should help...
    QuickTime or iTunes Installer "Could not open key" alert stops install on Windows

  • Application Help in German

    Hello,
    One of our users when he clicks in Application Help, the browser starts SAP HELP in German language. This happens only for a couple of them and the rest of the user commuinty is having ENGLISH.
    Can any one suggest if it is any parameter setting or GUI setting etc where the user has gone wrong.
    He has the other SAP screens and work in Perfect English and only the SAP help pops out in German language.
    Any poiinters to solve this query would be great and awarded suitably...
    Thanks.
    Sri

    Hi Keerti,
    Thanks for the response..... but there is only one variant in settings..IBWHELP and its the same for every one.. we have tried copy Ssystem Settings option as well but of no use... and i have only 2 users with such issue where the HELP file opens in German....
    Any other views or pointers would be appreciated...
    Br,
    Sri

  • Choice between UPK in-application help and standard EBS help

    Hi,
    We are on a EBS 11.5.10 project, implementing UPK.
    We got UPK in-application help working; changed custom.pll, set the profile option, everything fine.
    Now we would like the users to have the choice between UPK help (default) and standard EBS help.
    Therefore we opened the In-Application Support Player Configuration, and created a new Tab:
    Type: Oracle E-Business Suite help
    Tab Text: EBS help
    URL: ?
    Whatever we put in the URL, it won’t display the standard EBS context sensitive help. We can see the ‘EBS help’ tab when selecting ‘window help’ in the application but the page is blank or shows an error message.
    Do you have any tips on how to get this working?
    Thanks,
    Abe de Beer
    EBS Financials consultant
    Oracle Belgium

    Hi,
    I have the exact same requirtment, Could you please give the step what you have done so that it would be helpfull. Also after publishing the content on the i am not seeing the "Application Option" i am seeing the smart help. do we need to configure on "Application Option" or on smart help. Where ever is see the doc it says configure oracle_gateway.html but i dont see oracle/hemi folder at all. do know if there is a set up that has to be done to get this option (UPK 11.10.1)
    Thanks

  • Problem in Application Help Configuration in Solution Manager

    Hi Experts,
    Here I facing one problem during Application Help configuration..
    When I am going through application help for Solman Configuration it's taking me to standard erp help..
    Where as in SR13, under PlainHtmlHttp,
    In path tab I had given <b>saphelp_sm40/helpdata</b> for solution manager document.
    But for other standard t-code it's giving actual application help.
    where for SMSY,SOLAR01 etc i am not getting the application help.
    Looking for advices.
    Thanks & Regards,
    Sumanta Chatterjee

    Dear Sumanta,
    This depends on how you want to (or how you can) use this http://help.
    sap.com site.
    At first you must be aware of the different areas on this site, these
    areas have different URL structures, for example:
    - http://help.sap.com/saphelp_erp2004 <<< for mySAP ERP
    - http://help.sap.com/saphelp_47x200  <<< for R3 Enterprise
    - http://help.sap.com/saphelp_nw04    <<< for SAP NetWeaver 04
    - http://help.sap.com/saphelp_sm32    <<< for SAP Solution Manager 3.2
    The main problem is that in the area "http://help.sap.com/saphelp_sm32"
    there is only online documentation for the Solution Manager
    functionality.
    Can you please check the table SBAON_CCHK with transaction SE16.
    The following record must exist:
    MANDT COMPONENT                NAME_EN
    xxx   ST                       Solar Help
    If this record does not exist, please create this record manually.
    This should help resolve the issue.
    Regards
    Amit

  • I have just upgraded to 10.8 on my macbook pro and now I can't access itunes, videos and there is no sound - anyone help?

    I have just upgraded to 10.8 on my macbook pro and now I can't access itunes, videos and there is no sound - anyone help?
    It is an old macbook pro probably 6yo with the back lit keys - not under applecare anymore obviously. I downloaded the upgrade last night which took quite a while longer than it should have.
    Anyone else experienced this and can suggest something? many thanks Jo

    Run Software Update, wait till all the updates have finished downloading then restart the mac.

  • Sound application

    Hello.
    I sometimes get lost in the sound applications (games), with it all at once, and all the other sounds on the spot. How can I fix it?

    Ive solved my problem, but I have another question.
    Does anyone know how I could put in volume control?
    Ive searched the forums, but I still cant figure it
    out.The SourceDataLine has a control called "Master Gain" that can be used to control volume. Note that it is not linear, it's calibrated in decibles. So an adjustment of -10 will cut the volume in half. It also has range limits that may vary with your system and will trhow exceptions if they are exceeded. Here's the code you need to set it.
        public void setGain(float gain) {
            FloatControl g = (FloatControl) line.getControl(FloatControl.Type.MASTER_GAIN);
            g.setValue(gain);
        }You'll find some documentation here.

  • Best practice for application help for a custom screen?

    Hi,
    The system is Netweaver 7.0 SP 15 with e-recruiting .
    We have some custom SAP GUI transactions and have written Word documents with screen prints and explanations. I would like to make the procedure document accessible from the custom transaction or at least provide custom help text that includes a link to the full documents.
    Can anyone help me out with options and best practices for providing customized application help for custom SAP GUI transactions?
    Thanks,
    Margaret

    Hello Margaret,
    sorry I though you might be still in a design or proof of concept phase where the decision for the technology is still adjustable.
    If the implementation is already done things change of course. The standard in-system documentation is surely not fitting your needs as including screenshots won't work well.
    I would solve the task the following way:
    I'd make a web or pdf document out of the word document and put it on a web ressource - as you run e-recruiting you have probably the possibility for that.
    I would then just put a button into the transaction an open a web container to show the document.
    I am not sure if this solution really qualifies as "best practise" but SAP does the same if you call the Help for application in the help menue. This is implemented in function module SAPGUIHC_OPEN_HELP_CENTER. I'd just copy it, throw out what I do not need and hard code the url to call.
    Perhaps someone could offer a better solution but I think this works a t least without exxagerated costs.
    Kind Regards
    Roman

Maybe you are looking for

  • Looking for a way to Export Still Image to iPhoto

    Hi I'm looking for a way to export a still image from iMovie 08 to iPhoto 08? The simple drag, help, web search etc doesn't seem to come up with an answer but it's been a long day. Thanks

  • How to read the Sales Order( Item ) System status?

    Hi All, My requirement is to display the  System status of the sales order item*. When we go to the sales order display, if i double click on the line item , ii will lead to the next screen.Click on status tab,here we can see the Sytem staus. I would

  • Pacman Missing From Install

    Hey, Not new to Linux, used Arch a long time ago, but nowhere near recent, tried installing it again. I installed base and devel, which I get doesn't leave me with much, but there's some things missing. Like pacman, useradd, etc. aren't there.  I onl

  • InDesign CC 2014 not loading saved swatches

    I'm having some issues with my swatch library in InDesign. I've set up a couple of colour groups with swatches in them to load as default, and this works fine when creating new documents, however they don't load into previously saved documents and do

  • Https web services

    Hi there I tried to get BPS to display webapplications on the web. For that i needed to activate some services using transaction SICF. I got i to work, but after logging off and on to BW (3.5) i am now beeing told that https needs to be set up on the