Problem with getting the Grouping Separator based on Current Locale

Hi
I have created a java swing application. In which I try to get the grouping separator based on System language and location(Control panel).
But it always take comma as GroupingSeparator.
I set the region and language to South Africa. Now It should take blank space as a GroupingSeparator but it takes comma.Here is my code:
private char mcharDecimalSeparator;
private char mcharGroupingSeparator;
DecimalFormatSymbols objDecimalFormat;
mcharDecimalSeparator = objDecimalFormat.getDecimalSeparator();
mcharGroupingSeparator = objDecimalFormat.getGroupingSeparator();Any help will be appreciated '
Thanks
Sonal

From what I see here I'd say you'd get an NPE at line 4...
The point is: why do you care?
You should leave parsing and formatting to localeaware library classes like NumberFormat.
bye
TPD

Similar Messages

  • Problem with getting the little blackberry icon

    Hi the blackberry I'm using is working and up to date. I was setting up my mates blackberry 9320 but having a problem with getting the little blackberry icon to appear in the top right corner of my phone where the GMS is and signal bar and stuff its something to do with blackberry.
    I tried downloading bbm and it say associating bbm with blackberry id and constant loads with nothing happening bbm not working
    I NEED THE TINY BB ICON AT TOP RIGHT???

    Hi neal123
                            That BlackBerry icon will appear near signal bar when we activate  BIS on a 3G device. Did he activated BIS on his account. ? 
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • Problems with getting the number of hits in the document.

    I need to get the number of hits in the document.
    I use the query template for this porpose as:
    SELECT d.id, score(1)
    FROM document d
    WHERE contains(d.content,'<query>
    <textquery>SEARCHWORD</textquery>
    <score datatype="INTEGER" algorithm="COUNT"/></query>',1)>0
    AND d.id=1
    problems:
    1. If I have some synonyms associated with SEARCHWORD in OracleThesaurus and in case if document contains these synonyms they are not counted.
    2. could you explain the following results returned by query above:
    search query: word1 - numberOfHits=10
    search query: word2 - numberOfHits=8
    search query: word1 OR word2 - numberOfHits=10
    i suppose that numberOhHits=18 for a query: word1 OR word2

    Hi.<br><br>
    1.Synonyms (and generally thesaurus query extensions) cannot automatically uses in queries. You MUST expand you query using SYN function yourself. Query you write just applicable for only KEYWORD search.<br><br>
    2. Ask yourself. I'm not seen your data. ;)<br>
    Rgrds, Yuri.<br><br>
    PS. Just read Oracle Text Reference - you can find many answers here. ;)

  • Problem in getting the Date object based on the TimeZone

    Hi,
    I need to create a Date object that holds the time of the specified TimeZone.
    I am using TimeZone and Calendar object for that, but when I call the Calendar object's getTime() method, it returns
    a Date object that holds the local time.
    Can somebody let me know what why?
    Here is what I uses in my code.
    TimeZone tz = TimeZone.getTimeZone("IST");
    Calendar cal = new GregorianCalendar(tz);
    System.out.println("Date of "IST" TimeZone = " + cal.getTime());
    Instead of cal.getTime, if I do the following I am getting the values correctly.
    int month = cal.get(Calendar.MONTH); // 0..11
    int day = cal.get(Calendar.DATE); // 0..11
    int hour12 = cal.get(Calendar.HOUR); // 0..11
    int minutes = cal.get(Calendar.MINUTE); // 0..59
    Can somebody let me know why I am not able to assign the Date of the TimeZone specified.
    Is there anything wrong with the code?
    Seb

    Is there anything wrong with the code?No, only with your understanding of the Date class. From the API:
    The class Date represents a specific instant in time, with millisecond precision.
    The different time displayed for different TimeZones around the world are just that: a display format for the same instant in time.
    To display the "instant in time" in a different TimeZone, use DateFormat. Here's a small sample:TimeZone tz = TimeZone.getTimeZone ("GMT");
    Calendar c = Calendar.getInstance (tz);
    System.out.println(c.getTime ()); // prints Tue Mar 18 02:56:53 IST 2008
    DateFormat dtf = DateFormat.getTimeInstance ();
    dtf.setTimeZone (tz);
    System.out.println(dtf.format (c.getTime ())); // prints 9:26:53 PMIt's no different from formatting the same number in various ways: 10 decimal == 0xA hexadecimal == 012 octal == 1010 binary. Same value, different representation. Same intant in time, different local time for each zone.
    Savvy?
    cheers, db

  • [Mail] Problem with getting the e-mails.

    Hello Applepeeps,
    ****** things. My first reaction to my mail that isn't functionating anymore. Here a screeny:
    It is in Dutch, so I give you guys a raw translation:
    Warning:
    That is maybe a problem with the mailserver or the network. Check the settings for the account 'Hotmail' or try again.
    The Server made a mistake.: Time-out from connection with the server 'pop.3.live.com' via port 955.
    It is also on my gmail account. But my usual network works fine! I can game, tweet, facebook..
    Can someone fix this? Halp!

    also check inside any folders on your desktop, may have been moved there. you can also use your PC and log into your carriers blackberry site.
    ie.
    Verizon
    AT&T
    Sprint

  • XML: Problem with getting the nodevalue

    Hi all,
    I have the following xml-file:
    <ROOT>
    <ROW1>
    <Outer> Outer1 <Inner>Inner</Inner> Outer2 </Outer>
    </ROW1>
    </ROOT>
    I need to get the full-nodevalue of <Outer> (Outer1 <Inner>Inner</Inner> Outer2).
    I do not use the XMLDB and XMLType.
    I parse the XML-File using xmlparser and xmldom packages from pl/sql.
    Any ideas?
    Regards

    Probably can anyone help me to get only Outer2?
    With xmldom.getnodevalue I get only Outer1.
    Regards

  • Problem with getting the file name and type from OAMessageFileUploadBean

    Hi Tapash,
    I am trying the code below to get the file name and mime type from OAMessageFileUploadBean,
    DataObject fileUploadData = (DataObject)pageContext.getNamedDataObject("Documents");
    String uFileName = (String)fileUploadData.selectValue(null, "UPLOAD_FILE_NAME");
    String contentType = fileUploadData.selectValue(null, "UPLOAD_FILE_MIME_TYPE");
    But this piece of code gives errors saying that selectValue selectValue(null, java.lang.String) not found in class oracle.svc.DataObject
    Any ideas? why this code is giving error?
    Can i handle the event of browse button for OAMessageFileUploadBean?
    Regards,
    Nagesh Manda.

    Try using class oracle.cabo.ui.data.DataObject
    --Shiv                                                                                                                                                                                                       

  • Problem with getting the nodevalue

    Hi all,
    I have the following xml-file:
    <ROOT>
    <ROW1>
    <Outer> Outer1 <Inner>Inner</Inner> Outer2 </Outer>
    </ROW1>
    </ROOT>
    I need to get the full-nodevalue of <Outer> (Outer1 <Inner>Inner</Inner> Outer2).
    I do not use the XMLDB and XMLType.
    I parse the XML-File using xmlparser and xmldom packages from pl/sql.
    Any ideas?
    Regards

    set serveroutput on
    declare
    p xmlparser.Parser;
    doc xmldom.DOMDocument;
    procedure traverse( node in xmldom.DOMNode, nivo in integer )
    is
    nl xmldom.DOMNodeList;
    begin
    nl := xmldom.getChildNodes( node );
    for j in 0 .. xmldom.getLength( nl ) - 1
    loop
    if xmldom.getnodetype( xmldom.item( nl, j ) ) = xmldom.text_node
    then
    dbms_output.put_line( rpad( '.', nivo * 3 ) || xmldom.getNodeValue( xmldom.item( nl, j ) ) );
    else
    dbms_output.put_line( rpad( '.', nivo * 3 ) || xmldom.getNodeName( xmldom.item( nl, j ) ) );
    traverse( xmldom.item( nl, j ), nivo + 1 );
    end if;
    end loop;
    end;
    begin
    p := xmlparser.newParser;
    xmlparser.parsebuffer( p, '<ROOT><ROW1><Outer> Outer1 <Inner>Inner</Inner> Outer2 </Outer></ROW1></ROOT>' );
    doc := xmlparser.getDocument( p );
    xmlparser.freeParser( p );
    traverse( xmldom.makeNode( doc ), 0 );
    xmldom.freeDocument( doc );
    end;
    ROOT
    . ROW1
    . Outer
    . Outer1
    . Inner
    . Inner
    . Outer2
    PL/SQL procedure successfully completed.

  • Wedding Video Nightmare!! - I have an ongoing problem with getting the videos to playback correctly

    This issue has been going on since about 3-4 months ago. Took a while to get familiar with workflow. But now I'm stumped big time and clients are getting impatient.
    I will import a encoded video and audio file into encore. (.m4v & .ac3 ) and >new timeline and such
        looks great and no issues detected in Encore... it doesn't try and re-encode cause I already set the bitrate to around 20-22kbps
    I author a put together a  simple menu and burn to disc.
    Crappy result 1:   Put it in the Blu Ray player in the living room and it plays fine for a while and then around 20-30 secs or so I notice 1 single frame of video - half of it is snow..just a flicker of half framed snow. a little time goes by and notice it again.  It may do this through the whole video every minute or sometime 10 minutes...
    Crappy result 2 :Another issue is audio just drops out for about 5 minutes and comes back... If I rewind the video and play it back.. it doesn't have audio drop out in the same time in the video.
    Crappy result 3
    Another issue .... this is from the brides email :
    "So i just tried to watch both Blue ray disk. I tried it on 2 different blue ray dvd players. They are both freezing right after the boys pre ceremony part. "
    I burned a copy from the image file this bride is complaining about and it played fine through the whole video.
    I was thinking maybe I have a bad Blu Ray drive or discs ... however I'm not sure of this cause I do get errors often trying to burn discs direct from encore.
       Here's what I have
        Blu Ray internal: Asus BW-12B1ST   5months old
      Can't tell you what BD-RE I am using at the moment but can someone recommend   Discs and a good Drive? Cause I'm about to go buy new ones and throw these down the crapper

    Direct link to http://www.imgburn.com/index.php?act=download (send the author a PayPal donation if you like his program)
    I use Imgburn for ALL of my disc writing... backup files/folders as well as Encore output

  • Problem with Get the current and voltage from HP Power Supply (HP E3631A), using the GPIB interface.

    my USB device's power support is from the DC Power Supply ( HP E3631A)
    I need to read using current from a DC Power Supply ( HP E3631A),via GPIB interface.
    When I use the follow command.Why can't read the current value.My environment is in vc++ 6.0.
    "APPL P6V,5.0,1.0"
    "OUTP ON"
    "MEAS:CURR? P6V"
    attached the NI SPY File.Please check it.
    Can you tell me what the problem is ??
    Thanks in Advance !
    Hope you can solve my problem !!!"
    Attachments:
    E3631AERR.spy ‏7 KB

    Hi neilchuang,
    A read timeout error is usually caused by an error on the command string sent.
    The first thing I would check is if the instrument requires a termination character at the end of each message (such as linefeed). I noticed in the Spy capture that the commands do not have a termination character attached. This means that the instruments never recognized that you completed the query command, it doesn't execute the requested action and as a consequence of that it doesn't have any data to return.
    One question: Is the instrument detected by MAX when you scan for instruments?. If yes then you can assume that the GPIB software and hardware are properly installed. The scan for instruments sends the *IDN? (terminated by a linefeed). You can right-cli
    ck on the instrument entry in MAX and select "Communicate with instrument". Notice that at the end of the command the linefeed is included (\n).
    Double check with the instrument manual if the commands sent are the right ones.
    Finally, there is an instrument driver available in the idnet library: www.ni.com/idnet. Search for 3631. Since you are working in C you can use the LabWindows/CVI Plug and Play driver. Even if you decide not to use the instrument driver, you can still use it as an excellent reference on how to program with the instrument.
    Hope this helps!.
    DiegoF
    National InstrumentsMessage Edited by Molly K on 02-18-2005 11:05 PM

  • Lync 2013 I have a strange problem concerning group call pickup in lync 2013.the pickup calls on snom 710 having only a second delay, but in lync client it having about 5-7 second Anybody out there having similar problems with call pickup Groups?

    HI
    I have a strange problem concerning  group call pickup  in lync 2013.the pickup calls on snom 710 having only a second delay, but in lync client it having  about 5-7 second
    Anybody out there having similar problems with call pickup Groups?

    Hi,
    Did you meet any other call delay when you using Lync?
    As the issue happen for Lync desktop client, it can be performance issue. Please check if there is any error message from FE Server when the issue happen.
    Also please check if you have updated Lync Server to the latest version, if not, update it and then test again.
    Best Regards,
    Eason Huang  
    Eason Huang
    TechNet Community Support

  • I am getting weary of my iPhone 4s. the battery life is non-existent, second, i had problems with calls, the caller couldn't hear me and now it cannot detect internet networks. Be they wi-fi or cellular. what could be the problem.

    I am getting weary of my iPhone 4s. The battery life is non-existent, secondly, I had problems with calls, the caller couldn't hear me and now it cannot detect internet networks. Be they Wi-Fi or cellular. what could be the problem?

    Mullaly75 wrote:
    I assume u guys don't understand what open source software is
    Yes, I think most of us do understand what open source software is. It sounds as if you don't. Here's some information:
    Open-source software (OSS) is computer software that is available in source code form: the source code and certain other rights normally reserved forcopyright holders are provided under an open-source license that permits users to study, change, improve and at times also to distribute the software.
    Open source software is very often developed in a public, collaborative manner. Open-source software is the most prominent example of open-sourcedevelopment and often compared to (technically defined) user-generated content or (legally defined) open content movements.
    from http://en.wikipedia.org/wiki/Open_source_software
    Yes, Tom Wu of Stanford wrote a paper on something called Secure Remote Access Protocol. It's a form of Asymetric Key Exchange and has nothing to do with hacking anything. It's actually intended to protect data.

  • I still have problems with getting my website online. I have defined my server. Then I did the test and there was a connection via FTP. I put my files on the external server and there is a connection with the external server. But when I check to see my we

    I still have problems with getting my website online. I have defined my server. Then I did the test and there was a connection via FTP. I put my files on the external server and there is a connection with the external server. But when I check to see my website online (with Firefox, Explorer, Chrome browser) I always get the message 'Forbidden, You don't have permission to access / on this server.' Can somebody help me please? I have to get my website online..Thank you!

    Hello Els,
    it's well known, that in all these cases you describe I'm not a friend of a detailed Troubleshooting (I see Nancy#s smile already).
    To be able to be independent in all this things It is one of the reasons why I prefer an external FTP program. The difficulties with which you have to fight encourage me in this opinion, not least because we always search for experts, we don't charge a "jack of all trades".
    To manage several websites or to upload my files and sometimes for the opposite way, for a necessary download from my server or to use a "a site-wide synch", I'm using FileZilla. It simply looks easier for me to keep track of all operations precisely and generate or reflect easily the desired tree structure.
    Above all, FileZilla has a feature (translation from my German FileZilla) called "compare file list". Here it's possible to use file size or modification time as a criterion. There is also the possibility to "hide identical files", so that only these files which you want to redact remain visible.
    And even if it means you have to install a new program, I am convinced that there is an advantage. Here is the link to get it and where you can read informations about how it works:
    http://filezilla-project.org/ and http://wiki.filezilla-project.org/Tutorial#Using_the_site_manager
    Mac: Mac OS X (Use: Show additional download options)
    http://filezilla-project.org/download.php
    Of course, you also need all the access data to reach your server and for MIME issues, you should contact your web host/provider.
    Good luck!
    Hans-Günter
    P.S.
    Since I use two screens, the whole thing became even more comfortable.

  • Problem with showing a group of records in dynamic page (PLS-00428  error)

    Hi
    I have problems with viewing a group of records from db. I've created Page, which "Page Type" attribute is "PL/SQL". In "PL/SQL Code" field, I've written very simple SQL query: "SELECT * FROM PORTAL_DEMO.EMP ;"
    I'd like to generate HTML table with it's result. Unfortunately, every time I get the same Exception:
    Error 30584: DBMS_SQL has raised an unhandled exception. ORA-06550: line 1, column 7: PLS-00428: an INTO clause is expected in this SELECT statement
    Is it necessary to write a COURSOR (and use HTP function) to realize this functionality? I succeed, trying this way - but it is very uncomfortable ( a lot of code ).
    What I have done in wrong way?
    Please help me.
    Best regards
    Mario

    How do I handle this?

  • Hi, I have a problem with getting my apple Id working for me. It's been 2 months since it happened and Apple failed to act. I can tell my story proerly, but am not sure, you guys can help, so I just copy my message to them today, I am trying to get it acr

    Hi, I have a problem with getting my apple Id working for me. It's been 2 months since it happened and Apple failed to act. I can tell my story proerly, but am not sure, you guys can help, so I just copy my message to them today, I am trying to get it across all the places around to pay their attention. This is a desperate move, so if you are not the right people to help me to get my message accross, may be you can advise where can I go.
    Thank you, and sorry for the language.
    Vitas Dijokas
    I am sorry to say that, but your security makes my life miserable – it’s been 2 months since my Apple ID account got stuck, and since then I cannot update 37 applications (to date), i.e. most of my applications. Half of them I bought. I also paid for iCloud, and it is not working. I paid money and I am stuck with old applications and no iCloud. Your security *****. Your service ***** too. It took your service 1 month to finally understand why this happened to me, and it took me tens of emails to you and 3 hours of telephone conversation to find out the reason for my problem. And the problem is still not fixed. NOT FIXED. You just leave your customer – the one who paid you money and spent so much time with you trying to help you help me – and nothing. You tell me:  “Vitas, Stick your stinky iphone in your *** and enjoy life, we do not care!” *************.
    It is ******* outrageous, and you should know that,  guys. Get into the ******* database and correct the bug. Get someone in the partners-telephone carriers company (it is Orange as carreer and Cellcom as seller of the phone)  authorized to Identify me in personal encounter in one of the branches in Israel (where I live) and make sure it is really me, and get the ******* system accept my password and let me use my phone.
    Otherwise **** off. None of my friends will get my advise to buy an iphone or any of apple products. And I think you should be very attentive to cases like this, guys. Do your work for the money we pay, or disappear. There are many others eager to take your place, and if the problem is not fixed I will eventually go to the others. My patience is lost, and as soon as I can afford another phone I will change it. AND I WILL TRY TO GIVE BAAAAAD PUBLICITY TO APPLE – I am threatening here, so ACT NOW.
    Vitas Dijokas

    Well, it seems waiting is not my strong suit..! I renamed a javascript file called recovery to sessionstore. This file was in the folder sessionstore-backups I had copied from mozilla 3 days ago, when my tabs were still in place. I replaced the sessionstore in mozilla's default folder with the renamed file and then started mozilla. And the tabs reappeared as they were 3 days ago!
    So there goes the tab problem. But again when I started mozilla the window saying "a script has stopped responding" appeared, this time the script being: chrome//browser/contenttabbrowser.xml2542
    If someone knows how to fix this and make firefox launch normally, please reply! Thank you

Maybe you are looking for

  • PP CC 7.2.1.4 crashing at startup please help!

    My system: HP Pavilion dv6 Intel Core i7-2630 QM CPU @ 2.00 GHz RAM 6GB 64-Bit Windows 7 with Service Pack 1 Version: PP CC 7.2.1.4 More Reel I posted earlier thinking this was a file format issue because I am filming on my Canon T2i.  After trying s

  • Boot Camp Crash

    Hi, Recently I went to partition my MBP and half way through the partition, boot camp crashed and I had to force restart my mac. After I restarted my mac, around 20gb of HDD space was missing. Is there any way I can get it back? Thanks!

  • A bug in creator when creating jdbc jndi connection

    Hi, I am using sun java studio creator for jdbc jndi connection. The syntax is Context ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/mydb"); conn = ds.getConnection(); It's failed. Once I change to ctx.lookup(

  • Problems with applets on jre

    the computer no longer loads applets on ebay nor will it allow you to get in to pogo game rooms. I have tried all of the troubleshooting suggestions and all settings seem to be correct. I have also deleted jre and reinstalled it. what next? Dee

  • My cd drive isnt taking in my cd. theres no cd in it. what do i do?

    i hit the eject icon on my screen and theres nothing in the drive. I tried to insert a cd and it wont take. I hardly use it so theres no reason for it to be broken. any suggestions? thank you