Internationalization: JOptionPane distorts options when Locale is changed

Hi,
We are planning to make our application (a Swing client developed using jdk1.4.2) support i18n (internationalization) - esp. japanese characters.
Magically changing the start-up script (a batch file) with "-Duser.language=ja" did the magic. And now i am able to enter japanese characters into the Text Fields, Text Areas, etc.
But, the problem I see, so far, is that JOptionPane.YES_NO_OPTION (for which, String "yes", "no" are displayed) are getting distorted showing square boxes instead.
Fonts used is Font("SansSerif", Font.PLAIN, 12);
Can I know the reason for distortion of JOptionPane's options during display? Does JOptionPane not support SansSerif Font (and/or its size)?
Any help would be greatly appreciated.
Thanks in advance,
Pramodh.

Hi Fahle,
Thanks for the response. I appreciate it.
Yes, I forgot to mention that FileChooser displays proper and real Japanese Strings, but somehow ONLY JOptionPane distorts the Japanese chars and displays some funky square brackets.
Infact, as far I understand goes, any String coming from with JRE (i mean String not defined by the application or the user) should be displayed in the locale specific langauge. Like JFileChooser has "Open", "Cancel" on its window, they come from within JRE. And, "yes", "no" options on JOptionPane dialog box come from with JRE.
But I am yet to figure out why JUST JOptionPane is distorting the locale String.
I would appreciate if you have any more information to convey. Any one else has any idea of why it is behaving that way?
Thanks,
pramodh.

Similar Messages

  • JOptionPane distorts options when Locale is changed

    Hi,
    We are planning to make our application (a Swing client developed using jdk1.4.2) support i18n (internationalization) - esp. japanese characters.
    Magically changing the start-up script (a batch file) with "-Duser.language=ja" did the magic. And now i am able to enter japanese characters into the Text Fields, Text Areas, etc.
    But, the problem I see, so far, is that JOptionPane.YES_NO_OPTION (for which, String "yes", "no" are displayed) are getting distorted showing square boxes instead.
    Fonts used is Font("SansSerif", Font.PLAIN, 12);
    Can I know the reason for distortion of JOptionPane's options during display? Does JOptionPane not support SansSerif Font (and/or its size)?
    Any help would be greatly appreciated.
    Thanks in advance,
    Pramodh.

    Hi Fahle,
    Thanks for the response. I appreciate it.
    Yes, I forgot to mention that FileChooser displays proper and real Japanese Strings, but somehow ONLY JOptionPane distorts the Japanese chars and displays some funky square brackets.
    Infact, as far I understand goes, any String coming from with JRE (i mean String not defined by the application or the user) should be displayed in the locale specific langauge. Like JFileChooser has "Open", "Cancel" on its window, they come from within JRE. And, "yes", "no" options on JOptionPane dialog box come from with JRE.
    But I am yet to figure out why JUST JOptionPane is distorting the locale String.
    I would appreciate if you have any more information to convey. Any one else has any idea of why it is behaving that way?
    Thanks,
    pramodh.

  • Error message severity not translated correct when locale is changed

    We have a shell page displaying different task flows within a dynamic region. The shell page f:view tag has locale="#{LocaleManager.currentLocale}" to allow programmatic change of locale. Most of the flows uses the locale from the browser request (e.g. Danish) but some pages has fixed locale (en_US) and will always be rendered with this locale (don't ask me why. It's a requirement). For those fixed locale pages, the expression #{LocaleManager.currentLocale} always returns "en_US". It works nice, but we have a strange problem with the translation of error messages displayed by validators/converters. E.g. if a character is entered in a number field, the user will see the usual popup error message like "*Error:* The value is not a number". The message part of the error message is translated but the severity message prefix ("Error:" in the example), seems to be translated and cached once per session. If the error message popup has been displayed once in a different locale, then after change of locale, the severity message prefix continues to use the translation from the first display. The message part of the message is translated perfectly.
    Let me give an example:
    1) User enters da_DK page and enters a invalid number. Error message displayed: "*Fejl:* Værdien er ikke et tal"
    2) User enters en_US page and enters a invalid number. Error message displayed: "*Fejl:* The value is not a number"
    If the examples is reversed, then the error messages will be:
    2) "*Error:* The value is not a number"
    1) "*Error:* Værdien er ikke et tal"
    Do anyone know how to clear this translated severity message prefix, when locale is changed? Or is there a better way to overcome this issue?
    We're using JDeveloper and ADF 11.1.2.2 and are able to reproduce the issue on the embedded weblogic.

    Hi again
    ok I added another locale that ships with flash builder, and encoutered the same problem
    whenever I change the locale, the error tooltips are gone
    I was even able to fix both new locales by assigning the the validators custom error messages using resourceManager.getString() like i assign a value to all other UI strings in the application
    the default locale which is specified in the project compiler's parameters is en_US
    and my final question to you is:
    is there a best practice regarding localizing & managing the error massages Flex SDK uses?
    what is the internal path to the resource bundles that flex uses to display errors?
    it seems like it makes more sense to copy and edit an existing list of errors, rather then blow up the application code...
    can you please share your view on the matter
    thank you for your help
    Yariv

  • Itunes 10.6.1.7 problem: when I change the file "media type" from 'Music' to 'Podcast' the file disapears from ITUNES. I do this via (1) right click, (2) select 'Get Info', (3) select 'options' tab, and (4) change media type. What is the problem?

    Itunes 10.6.1.7 problem: when I change the file "media type" from 'Music' to 'Podcast' the file disapears from ITUNES. I do this via (1) right click, (2) select 'Get Info', (3) select 'options' tab, and (4) change media type. What is the problem?

    Hi Memalyn
    Essentially, the bare issue is that you have a 500GB hard drive with only 10GB free. That is not sufficient to run the system properly. The two options you have are to move/remove files to another location, or to install a larger hard drive (eg 2TB). Drive space has nothing to do with SMC firmware, and usually large media files are to blame.
    My first recommendation is this: download and run the free OmniDiskSweeper. This will identify the exact size of all your folders - you can drill down into the subfolders and figure out where your largest culprits are. For example, you might find that your Pictures folder contains both an iPhoto Library and copies that you've brought in from a camera but are outside the iPhoto Library structure. Or perhaps you have a lot of purchased video content in iTunes.
    If you find files that you KNOW you do not need, you can delete them. Don't delete them just because you have a backup, since if the backup fails, you will lose all your copies.
    Don't worry about "cleaners" for now - they don't save much space and can actually cause problems. Deal with the large file situation first and see how you get on.
    Let us know what you find out, and if you manage to get your space back.
    Matt

  • When i was trying to update my iphone 4s from 6.1.4 to ios 7,its asking to change the media sync  options,how can i change that option,can any one help me.........?

    when i was trying to update my iphone 4s from 6.1.4 to ios 7,its asking to change the media sync  options,how can i change that option,can any one help me.........?

    I tried powering down and re-starting the iPhone (as suggested at http://support.apple.com/kb/TS1275). This seems to have cleared the "...not connected to the Internet" problem, and iOS 6.1 is now in the process of downloading.
    Thanks very much for your feedback.

  • I accidentally screwed up my apple id when trying to change my primary email address. Password recovery options and security questions arent working either to restore

    I accidentally screwed up my apple id when trying to change my primary email address. Password recovery options and security questions arent working either to restore. Created a new appleid just to get into forums to ask a question but hesitate to sync itunes and iphone with it as i may lose all purchased music apps etc. can anyone help? i have received no email response frm apple support, it's been over 48 hours

    I have the same problem - it is maddening. I rely on this iPad for work so this is not just an annoyance! The above solutions of changing the appleid on the device or on the website do not work.
    The old email address no longer exists - I haven't used it in a year probably and I no longer have the account.  I logged into the appleid website and there is no trace of the old email address so there is nothing that can be deleted or changed there.  On the iPad there is no trace of the old email address so nothing can be deleted there either. I have updated the iPad software and the same problem comes right back.  Every 2 seconds I am asked to log in using the old non-existent email.  The device is currently useless.
    The only recent change to anything was the addition of an Apple TV device, which was set up using the correct login and password.
    Does anyone have any ideas? The iPad has been backed up to the iCloud so presumably it now won't recognize the current iCloud account? So restoring may notbe an option?

  • Why is my MacBook Pro **crashing** changing to a blue screen with lines or distorted screen when I open logic or Ableton Live

    Why is my MacBook Pro **crashing** changing to a blue screen with lines or distorted screen when I open logic or Ableton Live. Then I have to restart by long pressing the power button. Can somebody plz help me

    What you describe sounds like a hardware issue. Unfortunately, you'll need to get that checked out by Apple. If you have an Apple Store near you, make an appointment with the Genius Bar and take the machine in for evaluation.

  • Reset "Change All" option when opening files

    I accidentally hit "Change All" under "Get Info" when I was changing which application I wanted to open a specific file, and need to reset it.
    Before I accidentally did this, the computer was able to tell which program had created a certain file and the proper program opened when I double clicked on the file.
    I use both Photoshop and Illustrator, both of which create .eps files, now all .eps files open in Illustrator due to my previous error, but I only want .eps files actually created by Illustrator to open with illustrator, and .eps files created by Photoshop to open in Photoshop.
    I have thousands of files that I work with, and I can't go to each individual file and tell the computer which program to open it with. Also, if I save out a new .eps file from Photoshop, the computer STILL thinks it needs to be opened with Illustrator, and I have to manually change it or drag it to the Photoshop icon in my dock.
    I have a Mac Pro running the latest version of Snow Leopard
    Please help!
    Message was edited by: RaeHK

    no. under "open with" it shows illustrator, and I have to manually and individually change it.... if I create a new file in photoshop, I have to then go to where I saved it, hit command+i and change it back to open with photoshop because even when I save out new files, by default the computer thinks I want to open all .eps files with illustrator.

  • Ovi Maps 3.0 exits when attempting to change inter...

    I installed Ovi Maps 3.0 on my N95 (firmware V31.0.017).  I just used it for two weeks on a trip to the US, and it worked great!  Much better than Nokia Maps 2 in my opinion :-)
    After one week however, I suddenly could no longer change the internet settings in Ovi Maps.  When I selected Options > Tools > Settings > Internet, Ovi Maps would hang for about 5 seconds and then quit.  Initially this worked well though.
    The annoying thing is that, at the time when this first occured, the Internet access point in my Ovi Maps application was set to the WLAN network in my local hotel in the US.  I could continue to go online in my hotel, but no longer e.g. via the cellular network.  Now that I'm back home in Europe, I have no means to go online anymore.
    I thought I'd simply uninstall Ovi Maps 3.0 and install it fresh.  Unfortunately, "simply uninstalling Ovi Maps" seems to be an issue, as is clear from several other postings in this forum.  To uninstall applications, one would think of using the Application Manager on the phone or in PC Suite.  However, the former doesn't list Ovi Maps on my N95, while the latter doesn't show *any* of the installed applications on my N95.  Both phenomena have been reported elsewhere, and seem to be dependent on the phone model.
    So here are my questions:
    1) Does anyone have an idea why Ovi Maps may quit when attempting to change the internet settings?
    2) Is there any other way to cleanly uninstall Ovi Maps 3.0?
    Thanks!
    Gert
    Solved!
    Go to Solution.

    I managed to resolve the problem I reported above. 
    Since my Ovi Maps app always quit when attempting to go online, except when the connection was made through the WLAN access point of my illustrious US hotel, I tried the following:
    In the main menu of my phone, I opened Tools > Settings > Connection > Access points.  This showed a long list of access points I have been using over the past year or so.  I located the access point of the illustrious hotel, and deleted it from the list.  Then, when I started Ovi Maps again, and went to Tools > Settings > Internet, it again allowed me to define my desired access point, without quitting.
    In conclusion, leaving a WLAN access point setting in Ovi Maps that you won't be able to connect to anymore, can be unsafe.  I don't know if there was anything specific to the particular access point that I used.  (The hotel itself was good though ;-)  Nokia people who read this posting may want to look into this?
    Gert

  • Can not see the option Execution with Data Change in the infoprovider?

    Hi team,
    i am using query designer 3.x, when i go into my bex brodcaster settings and schedule my report
    i can not see the option "Execution with Data Change in the infoprovider",
    i can only see 2 options
    Direct scheduling in background process
    create new scheduling
    periodic,
    is there any setting which i would be able to see the option "Execution with Data Change in the infoprovider"?
    kindly assist

    Hi Blusky ,
    check the below given link.
    http://help.sap.com/saphelp_nw04/Helpdata/EN/ec/0d0e405c538f5ce10000000a155106/frameset.htm
    Regards,
    Rohit Garg

  • I am trying to share 3 iCloud calendars, but I do not see any options when I click on the Share icon.

    I have several calendars on my iCloud, and I want to share 3 of them with my wife. I am using Safari 6.0 on Mountain Lion (10.8), and when I go to my calendars on iCloud, I see all of the calendars listed in the left column. The three I want to share already have an active Share icon (green), although I do not recall sharing these calendars in the past.
    When I click on the Share icon beside each Calendar, it shows that the calendar is shared with myself. There is NO OPTION in this window for unsharing, or adding my wife to the share, or making them a Public or Private Calendar. The only option is a check box that allows me to decide whether to receive emails alerts when something is changed.
    I currently see all of my iCloud Calendars on my iPhone, iPad, and Mac Powerbook (running Mountain Lion). I share them with no one else. I have three Calendars that I do not want to share, and they have the options described in the Online Support, but the three I want to share with her give me NO OPTIONS.

    I should clarify that I am using a MacBook Pro, not Powerbook (if that's the proper nomenclature).

  • I have Lightroom 5 installed on my MacBook Air but when I try to open the program I receive the message "An error occurred when attempting to change modules".  I uninstalled, emptied trash and re-installed but I continue to get the same message.

    I have Lightroom 5 installed on my iMac which I downloaded (uploaded?) to my MacBook Air (via wi-fi) but unlike the iMac, I'm unable to use the program on the MacBook Air.  When I open the program on the iMac and click 'file', (as people using the program would know) there are 21 options - import pics, export, etc, etc - however, in the version on the MacBook Air, opening 'file' gives me four options - New Catalogue, Open Catalogue, Page Setup and Printer - and with that comes the pop-up message "An error occurred when attempting to change modules".  Any ideas please?

    A forum thread from 3 years ago talking about LR 1.x which had this problem seems to need permissions fixed or new folders created with the corrected permissions.  You might try doing a repair permissions for your user and/or run LR as an administrator user.  I am a PC person so cannot tell you exactly how to do that.
    https://forums.adobe.com/message/1457020

  • How to remove save, cancel option when end user runs the workbook in Portal

    Hi,
    how to remove save, cancel option when end user runs the workbook and make some small changes like using page items or increasing rows and columns
    I already made 2 changes
    1) I removed the option in Oracle Enterprise Manager under discoverer viewer of saving
    2) I also removed the option of Allow saving changes made in Viewer when adding workbook to portal
    But still the end user gets options of saving when made small changes to workbook like increasing rows and columns
    Is their any place, I need to make changes?
    Thanks in Advance
    Rowdheer

    Don't use JSP to serve a binary file. It almost implies the use of awful scriptlets and the invocation of both the response writer and the response outputstream which would only lead to IllegalStateException headaches in the server logs.
    Use a Servlet instead. Specify the file name as request parameter and let the servlet read the file and write it to the outputstream of the response.

  • Lightroom 4: An error occurred when attempting to change modules.

    I downloaded Lightroom 4 a few days ago and installed it on my MacBook Pro. Everything worked great. I thought it would overwrite Lightroom 3, but it didn't. So Lightroom 3 is still installed, but I haven't opened it since I installed Lightroom 4.
    I downloaded Lightroom 4.3 this morning and installed it on the same MacBook Pro.  Using my MacBook Pro and a second monitor, I opened Lightroom 4.3 and worked on some photos. Everything worked great.
    Then I began watching a slideshow in the Lightroom 4.3 slideshow module on the second monitor with my MacBook Pro in the library module. During the slideshow I clicked on the slideshow module on my MacBook Pro and got this error message:
    An error occurred when attempting to change modules.
    Now I can’t get into the slideshow module. I just get the error message.
    I moved the preferences file to the trash and reopened Lightroom 4 but lost color labels, so I put it back in the preferences folder.
    Thanks for your help

    I called Adobe and let them fiddle online with Lightroom on my MacBook Pro. The Adobe tech claims I have a corrupt permissions file. He told me to contact Apple and have them rebuild my permissions file.
    When I contacted Apple, the tech said to startup my MackBook Pro with the option key held down until the first screen appears. Then click on: Recovery HD, arrow, Language, Disk Utility, Macintosh HD, Repair Disk Permissions.
    I did this three times, but some permissions were not repaired. Another Apple tech then suggested I bring my MackBook Pro to a Macintosh authorized repair shop, and have them repair my permissions file. I asked if I can buy Norton Utilities or a similar program and do it myself. The Apple tech said yes, but an authorized repair person will know which permissions to repair and which ones not to touch.
    Unless someone on this forum can tell me how to do this repair myself, I’ll get it repaired next week. And, I’ll post the results as soon as I can.

  • An error occurred when attempting to change modules.

    Loaded LR on my iMac, tried to copy & use a catalogue from W7 P/C. Now get "An error occurred when attempting to change modules."  when opening LR. Tried a variety of on-line suggestions, HELP. NB too much hassle with all the other apps to start a new user with such as Adobe and Microsoft.
    George

    Hi, I¹ve been through it again to ensure I¹ve not forgot things. Completely
    removed Lightroom and all files I can find, etc and reloaded. Some tedious
    result. Step 6 is too time consuming at the moment for me, too many things
    on the go since I¹m about to go on holiday and on return I shall need
    Lightroom on this iMac. Any clues? This iMac had Mavericks from new,
    uploaded to Yosemite and then loaded Photoshop CC, Lightroom etc and get
    this damned problem.
    Reading around the web I¹m not the only one with this issue, to suggest a
    new user a/c is a soft option without resolving the issue.
    I hope an expert from Adobe can resolve this,
    Regards, George (retired IT Manager and IT Systems Project Manager)

Maybe you are looking for

  • Trouble with reader & player

    Tried to download, went ok, but when tried to install, got to 50% than got a message failed to initilaize?  Any ideas?  Tried many times, does it to both. thanks, Sean

  • SRM - SUS no transaction committed

    We are implementing ECC to SUS for Direct Materiall and SRM - SUS for indirect Material.  ECC to SUS is working for all processes ( Vendor replication, PO, SAR, PO confirmation, ASN, Invoice). SRM- SUS is not working. XML is send successfully from SR

  • Date value in parameter

    I have datadase coulumn req_date and format is dd/mm/yyyy In the report I have parameter as start_date and End_date the query in the query builder looks like this I have set a default static value as 01-01-1990 this works fine (and unchecked the "Res

  • Make my swing app daemon and can show monitor icon in taskbar in window

    hi all I have a application in swing. when it iconized, i want to it be can not visible, ( this is easy to realize) and then I want it can show a task icon at right of task bar in window so that user can make my application visible again. I think the

  • System throwing error when deleting a vendor through function module

    Hi, Actually we are trying to delete a  vendor in SRM by function module:BUP_BUPA_DELETE  then system is throwing the error: "Document exists for this business partner".We had a shopping cart in held status using this vendor so we got this cart delet