Font Issues on PC, MAC and LINUX

Hey all,
I have a software Applet that is designed to run on PC, MAC and LINUX. I am having troubles with the options dialogs and text areas that have strict size constraints. The font I use on PC to make the text fit into the space alloted to a JRadioButton (i.e.) in my menu doesn't seem to work on the MAC nor Linux. I am trying to figure out how to solve this problem. When it was just MAC and PC I simply made my fields a bit wider but with Linux involved now I want to develop a more robust solution. In theory I should find a font that is common to all 3 correct? Just wondering what should happen. Advice and input is much appreciated!
Rob

If the size of the component is critical, then you can over-ride the component's paint method (e.g. in a subclass) to scale the component's font to fit the component. I would only do this once, otherwise you'd be repeating the operation on every paint - use a "fontScaled" instance variable, for example.

Similar Messages

  • Simple network: Windows 7 file server & several Macs and Linux machines- SAMBA bombing out?

    Hi guys, i know this is really more of a windows support question, but here goes:
    Windows 7 Ultimate 64bit acting as a file server, turned off all the usual MS authentication stuff so Macs and Linux systems connect with password without issues..
    except when i start copying certain files/file types/names to the system, it will break the network connection, then refuse any more connections, all macs and linux machines on the network are booted, from the PC however i can still access the Macs shares volumes.. (the macs still see the windows machine & pinging is still there, but if i try to connect i get 'check the name/ip address' error
    im no expert, but its as if the Samba service on the windows machine gets killed and im not sure what to do to get it to re-connect other then restarting the system, but as the system is also a terminal server users always have apps/documents open and its 'never a good time' to do it..
    if there was an alternate Samba to install, or a buffer patch, or even a 'goto this service, stop and restart' etc.
    Trying to get help from the 'windows' community comes down to 'well your on a mac what do expect etc etc' *sigh*
    any help is appreciated
    Richard

    Hi, just thought id update my finding regarding this, and it maybe directly affected by my only system, but in case anyone else has this issue?
    I thought it may be due to the file name thats causing the lockups, but I found while trying to backup my collection of install images and updates that sure enough a simple named file 'osx10.6.3.DMG' going to the server, 850MB in it stalls and fails, now im not able to connect.
    but form the PC, without changing the name or location etc, i copied the SAME from the Macs hard drive through to the windows system, all 5.7GB.
    so it is something to do with my windows 7 system, but maybe more related to the size of the file then the name or non-standard characters as first thought.
    as suggested by Grant above i will check on the server boards as well.
    thanks

  • Touch-up tool causes font issue in Acrobat 9 and X

    While I edit text using the Edit Document Text tool (formerly TouchUp Text) the font style are getting changed, for example If i select the Uppercase style text using Document Text Tool after exit the selection and trying to save as  the doucment some characters with in the text changed into lower case. In Acrobat 7 and 8 the TouchUp Text tool works fine. Please suggest a solution to get rid of this issue in 9 pro and X pro.

    Hi LoriAUC,
    I have attached the screenshots  for your reference, How I selected the text and what the problem was occur in the pdf files. Actually this is pdf file which is exported from InDesign as per customer provided export settings. if I change 100% of subset fonts in that export settings(See the screenshots below) I can get rid of the font issues in Acrobat 9 and X pro but I am not supposed do any changes in that settings.
    If you want check/analyze the problematic pdf file I can send it as an attachement to your mail ID? if so please let me know your mail ID.
    Please let me know if you need any other details or questions to be clarified regrading this.
    Thanks for your  support.

  • Creating network between Mac and Linux

    Hello guys! I need to set up network between my iMac and Ubuntu linux. iMac is connected in internet by Airport and Fon Wifi Router witch is connected in router which is connected to adsl -modem. My pc is connected directly to router. Both computers have access to internet. Is there any easy solutions to share files with mac and linux? I don't need any webservers etc, I just want to share files.
    Other question related to this, why is my mac's ip address like 192.168... and linux ip addrress is 84.250...?
    Thanks allready!

    Though I'm not newbie with computers, I'm really confused becouse I haven't set up network like this never before.
    Not a problem, no worry... we all know something somebody else doesn't and vice versa.
    My linux says that my DHCP -IP is 193.210.18.18, is that related to this in any way?
    Yes, if the Mac had an IP of 193.210.18.x, (but not 18 for x), then connection would be simple, but I think we must have two devices passing out IPs. What is the Mac's IP again?
    http://www.helpdesk.umd.edu/topics/communication/ethernet/office/winxp/2882/
    Do you have any advice where I could start looking from the right IP of my linux?
    http://www.webmasterforums.com/networks-clusters/1804-find-ip-address-my-linux-b ox.html
    I'm not sure if its even configurable.
    http://tinyurl.com/2gug9s

  • Applet colors for Mac and Linux?!

    I've got an applet where I use Color(int, int, int) to set background colors of components. Running the applet on Windows in Netscape or Explorer gives the expected colors. But in Mac and Linux the backgrounds are only white (using Netscape or Explorer).
    Does anybody know why, and how I could set colors to be shown also for Mac and Linux?
    /Johan

    I doesn't seem to help using predefined colors, like 'red', 'blue', etc...

  • Mac and Linux executables

    Hi,
    I want to turn my Jar file in to a Mac and Linux executable. For windows I found a lot of programs which can do that, like Lauch4J and JSmooth. I would like to know if there are programs like that for Linux and Mac.

    Hi Shnoogins
    Nope, that's one of the changes you see between version 2 and
    3. There is now only a single .EXE option. And Mac isn't it!
    Cheers... Rick

  • I just had major issues with my Mac and had to get a new logic board. When I got the computer back and tried to reinstall Photoshop- it says error 6. What do I do?

    I just had major issues with my Mac and had to get a new logic board. When I got the computer back and tried to reinstall Photoshop- it says error 6. What do I do? It is impossible to get any phone number for adobe.

    Try these solutions: Error "Licensing has stopped working" | Mac OS

  • How do Mac and Linux find the JFX runtime?

    I've been searching the documentation without success for the answer to what ought to be a simple question -- how do I point Mac or Linux at the 2.2 runtime? It's no problem if I'm running in an IDE (NetBeans, e(fx)clipse), where I can tell the IDE where I unpacked the SDK. But what if I want to run a jar file, such as produced by the ant tasks?
    You'd think this would work (on Linux, where I unpacked the SDK into /opt):
    java -cp /opt/javafx-sdk2.2.0-beta/rt/lib/jfxrt.jar:. -jar MyProgram.jar But it doesn't -- I get a popup saying "This application requires a newer version of the Java runtime. Please download and install the latest Java runtime from java.com. Then restart the application" (I'm running with 1.7.0_05-b05 from Oracle).
    The only thing at all close I find in the Linux installation instructions is it says to unpack the samples as a subdirectory of the SDK, wherever I happened to put it, and then I should be able to run the examples with a simple "java -jar filename.jar". But even that's not quite true -- it only works if I first cd to the samples directory. But it's a start, so I tried...
    cd /opt/javafx-sdk2.2.0-beta/rt
    java -jar ~/dist/MyProgram.jarThat succeeds in finding the runtime, but my program doesn't work, because it doesn't find my dependent libraries. So I tweaked the command a little bit:
    cd /opt/javafx-sdk2.2.0-beta/rt
    java -cp ~/dist/MyProgram.jar -jar ~/dist/MyProgram.jarThat actually works. But it can't possibly be the right answer -- you shouldn't have to run a javafx program with the runtime directory as your working directory.
    And even that doesn't work on Mac. There, Java knows how to find the runtime that's installed with JDK 7 update 5 for Mac. But if I want to test a program with the 2.2 runtime, what do I do? Setting -classpath on the command line still uses the 2.1 runtime. And if I try the trick of connecting to javafx-sdk2.2.0-beta/rt first, it doesn't work at all -- it doesn't find my libraries, and it throws up a "java quit unexpectedly" window after getting a segfault.
    So what's a developer to do? Am I supposed to use the native packaging procedure instead?

    JavaFX 2.2 is first version where Linux/Mac are supported as runtime (and not just SDK).
    However, you need to install JavaFX Runtime that is part of JRE 7u6 (you can get beta from jdk7.java.net or wait for FCS version of it).
    Installing JRE is the only way to get JavaFX runtime installed on Mac and Linux (and eventually on Windows too).
    rt folder in the SDK is "private" copy of the runtime. It is not supposed to be used to run arbitrary JavaFX applications by default.
    You can still force to use it as
    java -Djavafx.runtime.path=/opt/javafx-sdk2.2.0-beta/rt/lib/jfxrt.jar -jar MyProgram.jar
    or
    java -cp ~/dist/MyProgram.jar:/opt/javafx-sdk2.2.0-beta/rt/lib/jfxrt.jar com.javafx.main.Main
    Note that if you use "-jar" then "-cp" is ignored by java launcher. This is not JavaFX specific behavior.
    JavaFX specific part is that properly packaged JavaFX main jar file will include copy of launcher class (com.javafx.main.Main)
    and this is what will be run when you double click on jar or use "java -jar". Launcher will try to locate JavaFX runtime to use,
    it knows how to find runtime in the SDK if it is sample located in the SDK itself and it also knows how to find installed version of runtime.
    If JavaFX is not found then it will show you message you observed.

  • Slow download on Mac and Linux using sockets

    We have a need to download as much as possible for a couple seconds using sockets, and we have noticed that Adobes flash player on Mac and Linux are slower then Windows while we get good results on all tree OS using Goggles flash player in Chrome.
    Our setup, client side, is a 1 Gbit/s internet connection throttle by a 100 Mbit/s switch. On the server side, we have an Apache web server (during testing) on a 1 Gbit/s internet connection.
    For testing purposes, we download as much as possible of a 2 Gb big file for approximately 10 seconds. After we connect to the server, via a socket, we send an http request to start downloading the file. Using bytesAvailable, we get the number of bytes downloaded every half second, calculate the average speed for that half second and store that value in an array. After 20 times, we stop downloading and close the socket connection. Finally we calculate the average download speed of the 20 measurements.
    All tests are preformed on version 11.6.602.180 except for Adobe Flash player on Ubuntu were the 11.2 r202 version. Adobe Flash player on Firefox 19.0.2 (other browsers were tested with similar results) and Google Flash player on Chrome 26.0.1410.43. Each OS/player was tested 5 times and presents the average.
    Windows 7 Enterprise (64-bit) 
    Mac OS X 10.6.8 (64 bit) 
    Ubuntu 12.10 (64 bit) 
    Adobe Flash player (NPSWF32_11_6_602_180.dll)
    92.73 Mbit/s 
    14.53 Mbit/s 
    44.25 Mbit/s 
    Google Flash player (pepflashplayer.dll)
    91,89 Mbit/s 
    89.46 Mbit/s 
    91.57 Mbit/s 
    doConnect();
    function doConnect():void {
        socket = new Socket(url,port);
        socket.addEventListener(Event.CONNECT, connectHandler);
    function connectHandler(event:Event):void {
        writeln("GET " + path + " HTTP/1.1");
        writeln("Host: " + url);
        writeln("Connection: close");
        writeln("");
        nStart = new Date().time;
        startTimer();
        socket.flush();
    function writeln(str:String):void {
        str +=  "\n";
        socket.writeUTFBytes(str);
    function startTimer(){
        startTime = new Date().time;
        var myTimer:Timer = new Timer(500,20);// 0.5 seconds 20 times
        myTimer.addEventListener(TimerEvent.TIMER, timeMeasurement);
        myTimer.addEventListener(TimerEvent.TIMER_COMPLETE, timeMeasurementComplete);
        myTimer.start();
    function timeMeasurement():void {
        receivedData = socket.bytesAvailable;
        var varJunk:ByteArray = new ByteArray();
        while (socket.bytesAvailable > 4){
            socket.readBytes(varJunk);
        var split:Number = new Date().time - startTime;
        var speed:Number = receivedData * 8 / ((new Date().time - startTime) / 1000);
        startTime = new Date().time;
        downloadList.push(speed);
        receivedData = 0;
    function timeMeasurementComplete():void{
        var len:int = downloadList.length;
        var sum:Number = 0;
        for (var i:int = 0; i < len ; i++) {
            sum +=  downloadList[i];
        downloadResult = sum / len;
        socket.removeEventListener(Event.CONNECT, connectHandler);
        if(socket.connected){
            socket.close();
    In further investigation we built an easy Flash based latency meter. We download a small txt-file, measuring the time between just before we send http-request and until we receive a response from the web server.
    We have the setup as for the speed tests, but we do this 5 * 20 times with each OS/player.
    Windows 7 Enterprise (64-bit) 
    Mac OS X 10.6.8 (64 bit) 
    Ubuntu 12.10 (64 bit) 
    Adobe Flash player 
    4.30 ms 
    66.67 ms 
    10.49 ms 
    Google Flash player 
    4.25 ms 
    4.28 ms 
    4.19 ms 
    doConnect();
    private function doConnect():void{
        socket = new Socket(url,port);
        socket.addEventListener(Event.CONNECT, connectHandler);
        socket.addEventListener(ProgressEvent.SOCKET_DATA, socketDataHandler);
    private function connectHandler(event:Event):void{
        writeln("GET " + path + " HTTP/1.1");
        writeln("Host: " + url);
        socket.flush();
        nStart = new Date().time;
    private function writeln(str:String):void{
        str +=  "\n";
        socket.writeUTFBytes(str);
    private function socketDataHandler(event:ProgressEvent):void{
        var latecy:Number = new Date().time - nStart; // latency in ms
    Using a packet analyzer (Wireshark) on the OS X/Adobe player, the time from http-request is sent to data is received is approximately 2 ms. An ack is sent less then 0.04 ms after the packet is received. Using the socketData event to send a new http-request, just after we measure the time for the last package, can see event created delays. We have a delay between 64 and 67 ms compare that to OS X/Google player with between 1 and 3 ms delay.
    Note: When playing around a timer, that fired a number of times during parts of a large number of latency measurements, we notice that measurements when the timer was running were better. Testing having a empty timer firing as fast as possible constantly during both download and latency measurements we got significantly better results on OS X/Adobe player, although not good. Average download 31,82 Mbit/s and average latency 16,59 ms.

    Bumping this topic again as it's still sort of bugging me, but the problem has been isolated to a few certain sites. On some i get the maximum speed and on others i get snailspeed. One of the slow ones unfortunately is basically anything that has to do with Apple....So all Quicktime movie trailers, iTunes stuff, movies etc are slow, except podcasts that are German. I'm downloading the 30 day trial of iWork and i'm getting whopping 19,2KB/s, when i should be getting about 1300KB/s. You can just imagine the frustration:/
    I'm just wondering am i alone on this or is anybody else excperienceing similar? And as usual, on windows i'm getting full speed all the time, anywhere, grrrr....!
    -CC

  • Mac and Linux Users Please tell me if you can turn on webcams here

    Mac and Linux users who have the latest versions of Flash installed, please tell me if you can turn on webcams on this website that we are developing
    www.instadates.com/chat/
    Press enter and click on Turn on Webcam button.
    The webcams work perfectly fine in Windows 7, but I do not have a Mac and do not know how to update my flash on linux mint 11.

    I apologize...I did not put the correct link above. Now its fixed.

  • Dual boot mac and linux

    Hi,
    I am trying to install linux to my MacPro to run both mac and linux operating system. However, I have no clue that how to do that. Could you please give me a help in detail how to do it.
    Thank you so much,
    Xiao

    There are detailed instructions for various methods of installing Ubuntu on your machine here:
    https://help.ubuntu.com/community/MactelSupportTeam/AppleIntelInstallation

  • Font issue between Reports Designer and Report Output

    Hi.
    I've succesfully migrated several reports from 6i to 10g (10.1.2.0.2) with and without parameter form. However, I have the following font issue:
    - When report is run from Reports Designer, font is kept.
    - When report is run from a forms module (through rwserver on the same machine, that is not really from an application server, but using Oracle BC4J or Developer Suite enviroment) the report output is different. In this case a bigger font is displayed and occasional truncation happens for some fields.
    The question is: How can i avoid this difference in font behaviour?. Is it font.ali related?. How come this happen on the same machine(Windows XP)? These reports are to be deployed on Linux, where reasonably, and font machine is expected to happen.
    Font used: Arial (Occidental) 9

    this might be an issue with the printer that is associated also, and the permissions to the printer that you might have..
    login to the application server machine and restart the reports server as an admin..try running the reports via the URL..i have a feeling that this issue might be somethiing to do with the permission(s) to the printer from your AS machine

  • Issues with a Mac and PC's network!

    I have a problem to connect my PC's with WINDOWS XP Pro to my iMac. What happens is that when I search my PC's in my iMac, it finds them easily and connects fast. The problem is that from my PC's, when I try to find my iMac, it is very slow and sometimes it doesn't connect. Windows finds it in the MSHOME workgroup but it always happens when I try to open the iMac from it. My configurations are ok (Windows sharing is checked) and the Mac and PC's are in the same workgroup. What should I do to correct this kind of error? Any tip?
    Thanks.

    See if iFelix's site gives you any help.
    http://www.ifelix.co.uk/tech/windowsxp.html
    Don

  • Sound capturing problem on Mac and Linux

    Hi,
    I've an applet that enables users to record (through microphone), play and save audio as a Wav file. The Wav file is saved in the user's home directory. This applet works well on Windows, but not quite on Linux and Mac. When I click Record and say something to the microphone, click Stop and click Play to listen to the recorded audio, nothing is heard. I'm not sure where the bug is, whether it's in the recording or capturing function. I'm quite new to JAVA and the applet was written based on the sample Sound Recorder applet. Really appreciate it if someone could help me out since I need to deliver the final product as soon as possible. Here is the code. Thanks a lot.
    /* Starts here */
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.Line2D;
    import java.awt.font.*;
    import java.applet.*;
    import java.applet.AudioClip;
    import netscape.javascript.JSObject;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.border.*;
    import javax.sound.sampled.*;
    import java.io.*;
    import java.text.DecimalFormat;
    import java.text.NumberFormat;
    import java.text.*;
    import java.util.*;
    import java.util.Vector;
    import java.util.Enumeration;
    import java.net.*;
    import java.lang.*;
    public class sound extends Applet {
         public String Fspr = System.getProperty("file.separator");
         public String AllPath;
         public String myOS;
         public int tmp1 = 1;
         AudioClip sound;
    boolean debug;
    protected boolean running;
         protected int setIntNo;
    ByteArrayOutputStream out;
    AudioInputStream ais;
    AudioFormat format;
    String audioFmt;
    boolean signed;
    boolean bigEndian;
    int sampleRate;
    int sampleSizeInBits;
    int channels;
    String formatStr;
    TargetDataLine line;
    SourceDataLine sourceLine;
    boolean playPressed;
    boolean stopPressed;
    boolean recordPressed;
    DecimalFormat df;
    DecimalFormat df2;
    long msecCurrent;
    long msecElapsed;
    int minElapsed;
    Date date;
    long msecStart;
         public void init(){
              // Get path to the audio file
              AllPath = getHomeDir();
    debug = false;
    signed = true;
    bigEndian = true;
              myOS = System.getProperty("os.name");
              if (myOS.equals("Mac OS X")){
                   sampleRate = 44100;
              } else {
                   sampleRate = 22050; // 8000-11025-12000-16000-22050-24000-32000-44100-48000
    sampleSizeInBits = 16; // 8-16
    channels = 1; // 1 - Mono 2 - Stereo
    formatStr = "WAV";
    playPressed = false;
    stopPressed = false;
    recordPressed = false;
    df = new DecimalFormat("00");
    df2 = new DecimalFormat("00,000,000");
    date = new Date();
         public void callJS(String jsFunc) {
              URL url = null;
              try {
                   url = new URL(jsFunc);
              }catch (MalformedURLException me) {
                   String mydd = "Bad javascript url: " + jsFunc;
                   JOptionPane.showMessageDialog(null, mydd, "Alert", javax.swing.JOptionPane.INFORMATION_MESSAGE);
              getAppletContext().showDocument(url);
         public void exitAudio(){
              System.exit(0);
         public void stopAudio(){
              running = false;
              stopPressed = true;
              playPressed = false;
              saveAudio();
         public void saveAudio(){
              try {
                   byte abyte0[] = out.toByteArray();
                   ByteArrayInputStream bytearrayinputstream = new ByteArrayInputStream(abyte0);
                   AudioFormat audioformat = getFormat();
                   try{
                        ais = new AudioInputStream(bytearrayinputstream, audioformat, abyte0.length / audioformat.getFrameSize());
                   } catch(Exception exception) {
                        JOptionPane.showMessageDialog(null,"Unknown Format");
                        return;
                   String s = "myfile." + formatStr;
                   createAudioFile(ais, s);
              } catch(NullPointerException e) {
                   JOptionPane.showMessageDialog(null,"Saving audio file unsuccessful!!!");
         public void captureAudio(){
    try{
    format = getFormat();
    javax.sound.sampled.DataLine.Info info = new javax.sound.sampled.DataLine.Info(javax.sound.sampled.TargetDataLine.class, format);
    if(line != null)
    line.close();
    try {
    line = (TargetDataLine)AudioSystem.getLine(info);
    line.open(format);
    line.start();
    } catch(IllegalArgumentException illegalargumentexception) {
                        JOptionPane.showMessageDialog(null, "Unknown Format.");
    return;
    date = new Date();
    msecStart = date.getTime();
    Runnable runnable = new Runnable() {
    public void run(){
    int i = 0;
    out = new ByteArrayOutputStream();
    running = true;
    try{
    while(running){
    int j = line.read(buffer, 0, buffer.length);
    if(j > 0){
    out.write(buffer, 0, j);
    msecCurrent = (new Date()).getTime();
    msecElapsed = msecCurrent - msecStart;
    out.close();
                                  playAudio();
                                  return;
    } catch(IOException ioexception) {
                                  JOptionPane.showMessageDialog(null, "I/O problems");
    int bufferSize;
    byte buffer[];
    bufferSize = (int)format.getSampleRate() * format.getFrameSize();
    buffer = new byte[bufferSize];
    Thread thread = new Thread(runnable);
    thread.start();
    return;
    }catch(LineUnavailableException lineunavailableexception){
    JOptionPane.showMessageDialog(null, "Line unavailable");
    return;
         public void playAudio(){
    try{
    if(playPressed)
    return;
    playPressed = true;
    byte abyte0[] = out.toByteArray();
    ByteArrayInputStream bytearrayinputstream = new ByteArrayInputStream(abyte0);
    final AudioFormat final_audioformat = getFormat();
    try{
    ais = new AudioInputStream(bytearrayinputstream, final_audioformat, abyte0.length / final_audioformat.getFrameSize());
    } catch(Exception exception) {
    JOptionPane.showMessageDialog(null, "Unknown Format.");
    return;
    javax.sound.sampled.DataLine.Info info = new javax.sound.sampled.DataLine.Info(javax.sound.sampled.SourceDataLine.class, final_audioformat);
    if(sourceLine != null)
    sourceLine.close();
    sourceLine = (SourceDataLine)AudioSystem.getLine(info);
    sourceLine.open(final_audioformat);
    sourceLine.start();
    date = new Date();
    msecStart = date.getTime();
    Runnable runnable = new Runnable() {
    public void run(){
    int i = 0;
    try{
    int j;
    while((j = ais.read(buffer, 0, buffer.length)) != -1) {
    if(stopPressed){
    stopPressed = false;
    break;
    if(j > 0){
    sourceLine.write(buffer, 0, j);
    msecCurrent = (new Date()).getTime();
    msecElapsed = msecCurrent - msecStart;
    sourceLine.drain();
    sourceLine.close();
    playPressed = false;
                                  tmp1 = tmp1 + 1;
    return;
    } catch(IOException ioexception) {
    JOptionPane.showMessageDialog(null, "I/O problems");
    return;
    int bufferSize;
    byte buffer[];
    bufferSize = (int)final_audioformat.getSampleRate() * final_audioformat.getFrameSize();
    buffer = new byte[bufferSize];
    Thread thread = new Thread(runnable);
    thread.start();
    return;
    } catch(LineUnavailableException _ex) {
                   JOptionPane.showMessageDialog(null, "Please close other audio device");
    playPressed = false;
         private AudioFormat getFormat(){
    return new AudioFormat(sampleRate, sampleSizeInBits, channels, signed, bigEndian);
         public String getHomeDir(){
    String s = System.getProperty("user.home") + Fspr;
    return s;
         public void createAudioFile(AudioInputStream audioinputstream, String s) {
    StringTokenizer stringtokenizer = new StringTokenizer(s, ".");
    stringtokenizer.nextToken();
    String s1 = stringtokenizer.nextToken();
    javax.sound.sampled.AudioFileFormat.Type type = null;
    if(s1.equalsIgnoreCase("AU"))
    type = javax.sound.sampled.AudioFileFormat.Type.AU;
    else
    if(s1.equalsIgnoreCase("WAV"))
    type = javax.sound.sampled.AudioFileFormat.Type.WAVE;
    else
    if(s1.equalsIgnoreCase("AIFF"))
    type = javax.sound.sampled.AudioFileFormat.Type.AIFF;
    else
    if(s1.equalsIgnoreCase("SND")){
    type = javax.sound.sampled.AudioFileFormat.Type.SND;
    } else {
    return;
              try {
                   String filename = AllPath+"UserAudio.wav";
                   File file1 = new File(filename);
                   if (file1.exists()) {  
                        System.gc();
                        boolean success = file1.delete();
                        if (!success){
                             JOptionPane.showMessageDialog(null,"Delete Failed");
                   AudioSystem.write(audioinputstream, type, new File(AllPath+"UserAudio.wav"));
                   recordPressed = false;
                   return;
    } catch(Exception exception) {
    JOptionPane.showMessageDialog(null,"I/O Problems: " + exception);
    /* Ends here */

    Hi,
    are you sure that the systems can handle the samplerate given? Is the mic input selected in the systems audio setup (on mac?)
    Just put some singnal (sine or noise) in your buffer to check if the problem is on playback or on recording.
    Tomy

  • Batch file in Mac and Linux

    Guys,
    I have a prpgram which I need to invoke with -Xmx parameters, like java -Xmx512M -jar ***. I think it is a better way to provide a batch file instead letting the user type a long command line. So I prepare a MS-DOS .bat file with the distribution.
    However, I don't know how to do such batch file in Linux/unix or Mac, which could let the user double-click and invoke the program with the parameters.
    Could somebody give me some help?
    Thanks!

    Could somebody give me some information on Mac shell
    script?Google for intro to bash scripts or something like that.
    #!/bin/bash
    java -cp whatever MyClassTypically the filename would end with .sh or .bash.

Maybe you are looking for

  • MR-DVR not working properly

    I just got setup with the MR-DVR yesterday - I am supposed to be getting the multi-room DVR package free as a new customer The boxes were reset, and I get the menu option for DVR on my second box - non-DVR. However, when I go to programs is says noth

  • Windows 7 automatic login to AD and Edir

    Any one have clear instructions on how to accomplish automatic login to a windows AD domain and edirectory? Using Novell Client 2 Sp3 for windows 7 (IR6). Novell is the primary login. Goal is to enable the automatic login to both as user "install" ..

  • Writing characters 0x80 through 0x9F to a text file

    I'm trying to write the full range of characters 0 to 255 to a file. I used the code below to do this. It works fine except for the range 0x80 to 0x9F. Is there a way to do this without Java converting these characters on its own? import java.io.*; p

  • For Update Of &Where current of

    Can you please give answer anyone,What is main use of For update Clause and Where current of Clause?

  • How to use recursive in this case?

    I have a tree showed in bweb rowser UI like this +- node1           | | | +- node_value1a    X  | +- node_value1b      | +- node_value1c      X | +- node2    X       | | | +- node2a      X | | | | | +- node_value2a1   X | | +- node_value2a2   X | | |