How to Beep in Java

Does anyone know how to make a 'beep' sound in your java source code?
Thanks in advance!
Roger

lazy ass
http://search.java.sun.com/search/java/index.jsp?col=javaforums&qp=%2Bforum%3A54&qt=beep

Similar Messages

  • I am unable to launch my illustrator 5.5 or 6. It is asking me to instal Java SE 6. When i go to the website it installs java 8. How do I get Java SE 6. to use my illustrator.

    I am unable to launch my illustrator 5.5 or 6. It is asking me to instal Java SE 6. When i go to the website it installs java 8. How do I get Java SE 6. to use my illustrator?

    Prompted to install Java SE 6 Runtime | Mac OS 10.9
    Mylenium

  • How to Use the JAVA SCRIPT code in .htm page of the component

    Hi .
    In my requirement i have to use Java Script Function in .htm code ..how to use the java script code and functions in .htm???
    thank you
    B.Mani

    Check this document  [Arun's Blog|http://wiki.sdn.sap.com/wiki/display/CRM/CRMWebClientUI-TalkingwithJava+Script]
    Regards
    Kavindra

  • How to Generate a Java file for a JSP Page

    Hi ,
    I am using weblogic11 .
    I am working on a JSP page which nearly consists of 4000 lines of code.
    I need to debug the file , but weblogic server is not generating the java file for the JSP pages .
    Please let me know how can i genertae Java file for the jsp pages ??

    JSPs are compiled into servlets automatically and those classes are stored in WEB-INF/classes folder. Servlet engine handles servlets.

  • Than how can i get java class by using it's class file?

    Hi
    After compilation of a java program, it creates a class file.
    After getting class file suppose class file has been deleted.
    Than how can i get java class by using it's class file?
    Thanks in advance.

    get a decompiler and run your class file through it--I'll assume you want the source code back and that you are not trying to recover a missing class file by attempting to use the class file that is missing--if it's missing, then I've not a clue on how to get it back by using what is already missing.
    BTW: many of your compilers have source control--if it does, just restore your missing file.

  • How can i execute "*.java " files in Workshop

    Hi,
    Im sunil,new to this weblogic workshop8.1..i dont know how to execute standalone .java files or servlets in workshop.plz help me and tell the way.
    regards
    Budati sunil

    Im not too sure about the Java project. But single normal java files with public static void maain(String [] args) are very simple to execute.
    1. Write the java code somewhere lets call this class A.
    2. Make a dummy page flow.
    3. In the begin action of this pageFlow, call the main method of the A class directly using A.main(null) since main is a static method. your code will work fine.
    4. If you have to pass a String[] as parameters. Before calling main, create this String[] and then pass it.
    In this way you can make a jsp and take the input from the user also.
    Hope it helps
    Cheeers

  • How to call a Java class from another java class ??

    Hi ..... can somebody plz tell me
    How to call a Java Class from another Java Class assuming both in the same Package??
    I want to call the entire Java Class  (not any specific method only........I want all the functionalities of that class)
    Please provide me some slotuions!!
    Waiting for some fast replies!!
    Regards
    Smita Mohanty

    Hi Smita,
    you just need to create an object of that class,thats it. Then you will be able to execute each and every method.
    e.g.
    you have developed A.java and B.java, both are in same package.
    in implementaion of B.java
    class B
                A obj = new A();
                 //to access A's methods
                 A.method();
                // to access A's variable
                //either
               A.variable= value.
               //or
               A.setvariable() or A.getvariable()

  • How to load a java card applet into a java card

    Dear All,
    I am a novice to java card technology..
    I have done some search on how to load a java card applet into a smart card but haven't found a satisfactory answer. I have read about installer.jar and scriptgen tool but I want to load the applet from a java program and not from command line. It would be of great help if somebody can help me out.
    If somebody can share a sample program which load a javacard applet(.CAP file) into a smart card, I will be very thankful.
    I am able to find some client applications which help us send APDU commands and recieve response APDU's to interact with an applet loaded on to the smart card but not application which actually load the applet.
    I have heard of OCF and GP.. some say that OCF technology is outdated and no longer in use.. can somebosy throw some light on this too..
    cheers,
    ganesh

    hi siavash,
    thanks for the quick response.. i checked out GPShell as suggested, it looked like a tool by which one can load an applet on to card and send some sample apdu commands... but I want to load the applet from the code.
    My application should look something like this.. it will be a swing applicaton where I have a drop down with a list of readers, I select the one desired and then click on "LOAD" after inserting a blank java card, at this point my applet which is stored in my DB should get loaded on to the java card. The next step should be to personalize it where I enter the values for the static variables of my applet and click "PERSONALIZE", at this point all these values should be embedded into APDU commands and sent to the java card for processing.
    For achieving this I am yet to find a comprehensive sample or documentation on the net.
    Please help...
    regards,
    ganesh

  • How to access a JAVA Script variable in JSP Code

    How to access a JAVA Script variable in JSP Code. I have been unable todo this.
    Plz Suggest a way.
    Thanks
    Soumya

    try to do this code
    String s=request.getParameter("javascriptvariablename");

  • How to call a java script in while eventprocessing?

    hi friends,
    How to call a java script from an event.
    when i click a button, i want to display a message in IE.
    For ex: BTN_CAN,
    When i click on this in IE i want show a message like "clicked on cancelled".
    how can i do this.....
    in javascript WINDOW.ALERT i am trying....
    Regards,
    Shankar.

    you can do some thing like this...
    < % @  pa g e la ng uag  e="a b ap" %>
    < % @ e xte n sion name="htmlb" prefix="h tm l b"  %  >
    <  h t  m l b:co  nt e nt d es ign="design2 00  3"  >
      <  ht m lb:page title=" "    >
        <  h tm lb :for m  >
           < h t  mlb:textVi ew text   = "Hello World!"
                          des  ign = "EMPHASIZED" />
          < ht  m lb  :bu  tton text          = "Press Me"
                         on  Clie  ntC lick = "al ert(' H ell  w or l d')"  / >
        <  / h t mlb  :for m >
      < / ht mlb :pa g e >
    <   / htm lb:co nt e nt >
    Edited by: Vijay Babu Dudla on Oct 6, 2008 7:20 AM

  • How to remove a java script pop up

    Hi,
    I imported a robohelp document from another company and i am
    catering it to my company's needs. The problem is they have popups
    which refer to .bmp and it is in java script. If i highlight the
    word which has the pop up and remove the popup and then highlight
    the normal word again and refer it to my topic in the project
    manger; it still refers to their image and not mine. It is strange
    but true. I don't know how to remove the java script cos each time
    i hover over the highlighted text there are 2 red squares on the
    left and right hand side of the word highlighted which i want to
    change from their image to mine.
    Any help would be much appreciated .
    Thanks,
    Ramya

    please take a look at this
    //--></script></robohelp>
    on the <b style="font-weight: normal;">Environmental
    Consequence</b> window
    captures and displays information that you reported to a
    governmental
    agency, police, rescue center, or internal company sources.
    </p>
    <div class=droptext id=POPUP286607275 x-ss-type=dropdown
    style="display: none;">
    <p class=Graphic style="margin-left: 0in;"><img
    src="agency_notification_tab.bmp"
    x-maintain-ratio=TRUE class=img_whs2 style="width: 1108px;
    height: 120px; border-style: none; border-style: none;"
    width=1108 height=120 border=0></p>
    </div>
    <p class=Body>The following is a description of some of
    the fields that
    display on the <b style="font-weight:
    normal;">Agency Notification</b> tab:</p>
    <ul class=whs3 style="list-style: disc;" type=disc>
    <li class=p-BulletedList1><p
    class=BulletedList1><b style="font-weight: bold;">Reported
    By</b> - Person who reported the incident to an agency
    or organization.</p></li>
    <li class=p-BulletedList1><p
    class=BulletedList1><b style="font-weight: bold;">Agencies
    Notified</b> - Agencies or organizations notified
    about the incident.</p></li>
    <li class=p-BulletedList1><p
    class=BulletedList1><b style="font-weight:
    bold;">Contact</b>
    - Contact person at the notified agency or
    organization.</p></li>
    <li class=p-BulletedList1><p
    class=BulletedList1><b style="font-weight: bold;">Notify
    Date</b> - Date the agency was
    notified.</p></li>
    <li class=p-BulletedList1><p
    class=BulletedList1><span style="font-weight:
    bold;">Comment/Report
    Number</span> - This field can be used to record any
    comments, notes,
    agency report/case numbers associated with the agency
    notification. </p></li>
    </ul>
    <p class=TableText><a href="javascript:void(0);"
    onClick="var e; if (parseInt(navigator.appVersion)>=4){e=event;}
    if (parseInt(navigator.appVersion) >=2 &amp;&amp;
    typeof(PopupMenu_Invoke) == 'function')
    PopupMenu_Invoke(e,'','Action
    Buttons','../../03_Getting_Started_files/Action_Buttons.htm','Adding
    a Row','../../03_Getting_Started_files/Adding_Row.htm','Adding Text
    Entries','../../03_Getting_Started_files/Adding_Text_Entries.htm','Deleting
    a
    Row','../../03_Getting_Started_files/Deleting_Rows.htm','Environmental
    Consequence
    Record','EC_Environmental_Consequence_Record.htm','Searching by
    Personnel
    ID','../../03_Getting_Started_files/Searching_by_Personnel_ID.htm','Selecting
    the
    Time','../../03_Getting_Started_files/Selecting_Time.htm');return
    false"
    title="Related Topics" id=a2 style="position:
    relative;"><img src="../../ss_btn_related_topics1.gif"
    alt="Related Topics" style="width: 81px; height: 17px;
    border-style: none; border-style: none;"
    width=81 height=17
    border=0></a><robohelp><script
    type="text/javascript"
    language=JavaScript1.2><!--
    InitEffects('a2');
    //--></script></robohelp>
    </p>
    <script language=javascript1.2
    type="text/javascript"><!--
    kadovTextPopupInit('a1','POPUP286607275');
    //--></script>
    if you could paste this code on your word doc and try to
    search for .bmp it exactly shows where it is used i tried removing
    that line but it acted strange as even when i added a pop up to a
    word it does not show anything in the view mode.

  • How to call a java script?

    Hi,
    I m new to Indesign and also to MAC OS...
    I ve tried the sdk samples of InDesign CS3 on MAC OS. It works well.
    I m making changes to one of the samples (BasicPanel). I ve added few check boxes and buttons in it. I donno where to give the code for button(in the panel) event/action?
    I also need to know "how to call a java script from InDesign CS3 SDK ?"...
    I have the Scripts ready... Can someone provide the code used to call JS...
    Someone pls help me.....
    Thank You...

            Here s the code to call a Javascript:
            IDFile scriptFile;
            FileUtils::GetAppInstallationFolder(&scriptFile);                    //application folder path
            FileUtils::AppendPath(&scriptFile, PMString("Scripts", -1, PMString::kNoTranslate));               
            FileUtils::AppendPath(&scriptFile, PMString("Scripts Panel", -1, PMString::kNoTranslate));
            //inside the scripts panel, append path of the folder in which ur script is present.
            //Suppose, ScriptsPanel->NewFolder->Link.jsx
            FileUtils::AppendPath(&scriptFile, PMString("NewFolder", -1, PMString::kNoTranslate)); 
            FileUtils::AppendPath(&scriptFile, PMString("Link.jsx", -1, PMString::kNoTranslate));
            InterfacePtr<IScriptRunner>scriptRunner(Utils<IScriptUtils>()->QueryScriptRunner(scriptFi le));
            bool filestatus=scriptRunner->CanHandleFile(scriptFile);
            if(filestatus==1)
                scriptRunner->RunFile(scriptFile,kTrue,kFalse);
    Regards,
    tnhems

  • How to use a java class in difference project under a same workspace!

    Hi, there:
    I have a problem. I want to reuse a java class which is located in another project of the same workspace. I do not know how to set the two project setting or how to import the java class. I deeply appreciate.
    Sheng-He

    include it as a library
    open project settings goto libraries and simply add your class

  • How to compile a java file which is in memory?

    how to compile a java file which is in memory?
    such as:
    String s="class MyClass {....}";
    how to compile the string?
    thx

    come on ...That was a perfectly valid solution.
    Do you know how to call the sun.* compiler? If not then search the forums for it. If that interface still exists (which it might not in newer versions) you then will create a string stream from your class and pass it to that.

  • How can I define "java.util.ResourceBundle" in my Code ?

    Dear Mr. MLRon,
    Thanks to you for your replying to me.
    How can I define "java.util.ResourceBundle" in my Code ? To more understanding about my problem I can say that the Persian Font is Like as Arabic, but the Java can not Recognize it. please tell me how can I add "java.util.ResourceBundle" to my code and what should I do then?
    Thank you in advance,
    Tantan.

    Please stop starting new threads for this. Please reply in the original thread!
    http://forum.java.sun.com/thread.jspa?threadID=627917

Maybe you are looking for