JOptionPane doesn't talke into account Locale.getDefault()

Hello,
I'm working with J2SDK and RE 1.3.1 for Linux. I have noticed that, when using JOptionPane, the text labels for the buttons placed automatically by JOptionPanel, when invoking showXXX, doesn't take into account the default Locale for that instance of the JVM.
If I have the environment variables for linux:
export LC_ALL=en_GB
export LANG=en_GB
And in my java application I do the following:
Locale.setDefault(new Locale("en", "GB"));
The buttons of my JOptionPanes are still rendered in spanish, and not in English...
Maybe is this a bug? Or, more probably, am I doing anything wrong?
Thanks in advance and best regards,
Miguel Angel

I have the same problems when I display Chinese Character

Similar Messages

  • Finder not taking into account local backups when reporting free disk space

    Time Machine in Lion (10.7.2) stores local backups of files on your laptop's hard drive when it is not connected to an external Time Machine backup drive. See this article for more information.
    If you click on the Apple in the top-left corner of your screen and choose About This Mac > More Info > Storage, you will see exactly how much space your local "Backups" are taking (along with other useful info about how your hard drive space is being used).
    Interestingly, the amount of free HD space listed there differes from the amount of free space Finder says is available (when you choose View > Show Status Bar to display it). The amount that it differs is exactly the same as the amount of the local "Backups." So, it appears that Finder is not taking those local Backus into account when it displays free disk space.
    So, Finder is telling me I have almost 100 gigs MORE free space than I actually have. I would prefer Finder to show me how much space I have AFTER the local Backups are taken into account.

    The article that you linked to gives the rationale for this:
    Note: You may notice a difference in available space statistics between Disk Utility, Finder, and Get Info inspectors. This is expected and can be safely ignored. The Finder displays the available space on the disk without accounting for the local snapshots, because local snapshots will surrender their disk space if needed.

  • Sort column doesn't take into account new rows

    Hi,
    I'm using jdev 11.1.2.3.0
    When I add new rows to table and then try to sort any column before commit.
    The sort does not take the new rows into account when performing the sort.
    How could I solve this problem without commit?
    Thanks

    You have to set the query executioner mode to in memory so that the temporary rows are also taken into account when sorting.
    http://docs.oracle.com/cd/E16764_01/apirefs.1111/e10653/oracle/jbo/ViewObject.html

  • BPELPM: current-dateTime() doesn't take daylight saving into account

    When calling current-dateTime() from the BPEL process manager, it does not take the daylight saving time shift into account, so the difference to UTC from the german local time is incorrectly computed (in summer).

    Hi Aurélien,
    this is described a bit in the CCLM guide: Work with CCLM in Solution Manager SP12 | SCN
    This step only appears if one of the data pools "Table Utilization" or "Data Growth" was
    selected.
    If DVM data extractors are running then. DVM records the data growth and the table
    utilization. DVM does not record the reports or transactions, which are using the
    respective tables.
    In order to link reports and transactions (in fact the reports, which are assigned to
    the transaction) to the tables a project has to be defined in SOLAR01, where all the
    transactions and reports are assigned. One or more of these projects can be selected as
    a basis for the analysis.
    Attention: Only the reports and transactions assigned to the selected project(s) will
    be evaluated and checked for data growth and table utilization.....
    Remark: To set up DVM extractors you have to run the DVM guided procedure in transaction solman_setup next to CCM setup.
    BR, Sylke Graupner

  • [svn:osmf:] 14601: Fix bug where parsing of stream that gets passed to NetStream.play doesn' t take urlIncludesFMSApplicationInstance into account, resulting in stream not found error.

    Revision: 14601
    Revision: 14601
    Author:   [email protected]
    Date:     2010-03-05 09:47:28 -0800 (Fri, 05 Mar 2010)
    Log Message:
    Fix bug where parsing of stream that gets passed to NetStream.play doesn't take urlIncludesFMSApplicationInstance into account, resulting in stream not found error.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamPlayTrait.as
        osmf/trunk/framework/OSMF/org/osmf/net/NetStreamUtils.as
        osmf/trunk/framework/OSMF/org/osmf/net/dvr/DVRCastNetConnectionFactory.as
        osmf/trunk/framework/OSMFTest/org/osmf/net/TestNetStreamUtils.as

    I had a while ago similar problem with USB memory stick. At the end, I don't know why, just formatting it using WinXP helped me.
    S-
    Last edited by StenM (2011-07-22 17:56:32)

  • [svn:fx-beta1] 7038: Updating Gumbo webtier packaging to take into account the Flash Player 10 requirement , MXML 2009 namespace changes and associated manifests, and new locales.

    Revision: 7038
    Author:   [email protected]
    Date:     2009-05-18 09:31:29 -0700 (Mon, 18 May 2009)
    Log Message:
    Updating Gumbo webtier packaging to take into account the Flash Player 10 requirement, MXML 2009 namespace changes and associated manifests, and new locales.
    QE: Yes, I tried checkintests with the webtier.war distribution and could successfully compile the associated apps. Please test the webtier.war distribution with the larger suite of webtier tests.
    Doc: No
    Checkintests: Pass
    ant package: Successful
    Reviewer: Paul
    Modified Paths:
        flex/sdk/branches/beta1/modules/webtier/j2ee/coldfusion/build.xml
        flex/sdk/branches/beta1/webapps/webtier/WEB-INF/flex/flex-config.xml
        flex/sdk/branches/beta1/webapps/webtier/build.xml

  • WebLogic 11g: Weblogic-Application-Version not taken into account

    Hello,
    I'm trying to set up Production Redeployment on my EAR, under WebLogic 10.3.6.
    However, I can't figure out how to make Weblogic-Application-Version work in MANIFEST.MF
    Here is my EAR structure:
    MyApplication
    --- APP-INF
    --- --- lib
    --- --- classes
    --- META-INF
    --- --- application.xml
    --- --- weblogic-application.xml
    --- --- MANIFEST.MF <- file I update
    --- WebApp1
    --- --- META-INF
    --- --- --- MANIFEST.MF
    --- --- WEB-INF
    --- --- --- classes
    --- --- --- lib
    --- --- --- web.xml
    --- --- --- weblogic.xml
    --- WebApp2
    --- --- same as WebApp1
    MANIFEST.MF content is the following:
    Manifest-Version: 1.0
    Weblogic-Application-Version: VERSION_1
    The problem is that it's not taken into account when I deploy the application in the WebLogic console.
    When I use staged mode, the line Weblogic-Application-Version: VERSION_1 is removed from the staged MANIFEST.MF file.
    The only way to manage to version my application is to add the flag -appversion to weblogic.Deployer, but I don't want to use that on a Production environment (and it's not recommended in the documentation!).
    Any idea why Weblogic-Application-Version not taken into account? I tried to add debug mode to node weblogic/debug but with no success.
    Thanks by advance,
    Julien

    I tested it at my end and was able to redeploy it successfully with the application versions.
    Are you saying that by deploying through weblogic console,the archive version is not honoring/getting picked up .is that correct?
    if yes, what does your weblogic console shows for archive version,when you first try to deploy your application with the VERSION_1.
    I mean,when you are on the "Optional Settings" Page.Do you see the Archive Version as VERSION_1?
    Deployments >> Click on the Install >> select your application ( MyAPP)>> Install this deployment as an application >> Select deployment targets >> Optional Settngs
    Example from the Optional settings Page for My application
    What do you want to name this deployment?
    Name: MyAPP     
    Archive Version:     
    VERSION_1
    This can confirm that the application being deployed is versioned one and if it doesn't shows up,then you need to check why its not getting picked up.?
    Moreover,You can enable the "deploy" debug flag to see whats going wrong in your case during the deployment process
    Server > Debug > Weblogic > Deploy
    Do refer the below viewlet on the Production Redeployment
    http://download.oracle.com/otn_hosted_doc/wls/redeployment/wls-side-by-side-non-annotation_viewlet_swf.html

  • Getting Error while posting billing into accounting.

    Hi All,
    Could any one help on this error,i am getting this while posting billing into accounting.
    Tax statement item missing for tax code O0
    Message no. FF805
    Diagnosis
    No tax item exists for tax code O0 in a G/L account item. A possible cause is an incorrect transfer of parameters by the application to the Accounting interface.
    Procedure
    Enter an OSS message.

    Hi Raja,
    We have many FF805 errors reported by customers and the same solution
    has resolved the problem. Please note that the SD-FI interface changed
    from earlier releases.
    In the vast majority of cases, error FF805 occurs because of an error
    in your pricing procedure. The previously attached note 112609 explains
    in detail how tax codes are transfered to conditions.
    The note 400766 explains the checks performed by the system on the Tax
    codes:
    1. system checks whether there is a revenue line for each tax line.
    2. in the reverse case, for each revenue line containing a certain
       tax indicator there must be a tax line with this indicator.
    If the tax condition has condition value zero and condition base
    value zero, then it is not transferred to FI.
    If you have revenue lines containing a tax indicator XX, but no
    tax line with tax indicator XX, then the error FF805 issues, and
    it is justified. => Please check these informations. I have attached
    notes for further information.
    -> EXAMPLE
       If tax condition MWST has base amount zero and value zero; for this
       reason it is not passed to accounting. But, according to the
       criteria reported by note 112609, its tax indicator EG: A7
       has been assigned to the condition EG: ZBR1.
       So in accounting there would be a revenue line with tax indicator A7,
       but there isn't any tax line with indicator A7 (because MWST doesn't
       pass to FI). The note 400766 states situation is unallowed, and error
       FF805 is justified.
    Thanks and best regards,
    Smile

  • I have OS and photoshop CC my spacebar doesn't turn into the hand anymore

    I don't know if I pressed a series of keys that took away the action of my spacebar turning into the hand tool but my spacebar now doesn't turn into the hand tool.  I have looked into the Keyboard short cuts and found the Hand tool.  It has an H next to it and that keyboard shortcut works, but I need the quickness of toggling between the hand tool and whatever other tool I'm using.  How can I get this back?

    I had this same issue and a restart would NOT fix the problem, neither would reseting the prefs, or any of the other solutions mentioned in forum posts.  I discovered the problem to be the Terminal application was automatically opening on login, which had the "Secure Keyboard Entry" option enabled. (Terminal menu item->Secure Keyboard Entry (check marked))  If I quit Terminal without disabling "Secure Keyboard Entry", the spacebar in Adobe Illustrator/Photoshop would work as expected.  Although, if I restarted with Terminal still loading automatically with "Secure Keyboard Entry" enabled then the spacebar would NOT work until I quit the Terminal app.  The problem is that when the computer logs into the user account and starts the Terminal app it hides the keyboard entry from other applications.  Somehow Adobe products are now sensitive to this and the spacebar stops working as is should.  So, the solution is to either make sure Terminal is not to load automatically at login, or disable the "Secure Keyboard Entry" option in Terminal and only enable it as needed.  Be sure to disable it when your are no longer using the terminal.  I have never seen this before and have been using Adobe products on OS X since its release, but I have not always used the Terminal as I do now in such a secure way.  Thanks again governments and criminals for even further complicating our lives!
    -Cheers

  • Does the SNP optimizer takes into account transportation calendars (time streams)?

    Hello,
    We're trying to limit the days when a transportation lane can be used by including a transportation calendar(time stream) to the means of transport. The receipt days on certain locations, depend on the source-target location relationship so we don't want to do this through shipping/Receipt calendars at the location Level (/SAPAPO/LOC3).
    Example:
    Source A - Target X     Receipt days ( Monday-Tuesday)
    Source A - Target Y     Receipt days (Friday-Sunday)
    Source B - Target X     Receipt days ( Monday-Wednesday)
    Source B - Target Y     Receipt days (Thursday-Friday-Saturday)    
    We've tried this in an heuristic scenario, and it works. But when we run the optimizer, it doesn't seems to take into account the transportation calendars; it just creates distribution orders every day depending on the demand at the target location.
    Does anyone knows if the optimizer run should consider transportation calendars, or this functionality is only for heuristics and/or CTM?
    Is there another recommended way to model it?
    Cesar

    Hello Ada,
    As you said, the calendar of the transportation resource overrules the transportation calendar (time stream)
    I tested after removing the transportation resourced and it now uses the transportation calendar.
    However, if a transportation lane has a lead time greater than 24 hours, we need that the system only ships on a specific day from the location source and receives the goods on the next day at the target location.
    For this example,
    Source A -  Target B;  Lead time (48 hours)
    Shipping is allowed on Monday – Receipts should be on Thursday
    if we set Monday through Thursday as working days or periods in any of both types of calendars (resource or time stream) at the means of transport, the system will plan shipments every day from Monday to Thursday, instead of only shipping on Mondays.
    Do you know if its possible to have the behavior mentioned above (shipments on Mondays, receipts on Thursdays)?
    Best regards

  • Trying to sign into account, get told too many tries, How to fix this?

    Trying to sign into account get told too many tries. How do I fix this?

    Reader does not need signing in. If you are talking about Digital Editions, the forum to post your question is here:
    http://forums.adobe.com/community/adobe_digital_editions

  • Movement type 281, scrap not taken into account

    Dear Experts,
    We have a BOM with 100 components transfered into a project network with transaction CN33.
    In the BOM, on item level, we have stated component scrap %.
    MRP takes these component scrap % into account.
    However, if we confirm a project with transaction CN25 the proposed/booked goods movement 281 does not take the scrap % into account.
    Example material BOM A (base quantity 100) contains component B (quantity 100 and component scrap 10%). MRP calculates with requirement 100 for material BOM A a requirement of 110 for component B. However, if we explode material BOM A to a project with transaction CN33 and we book the confirmation with transaction CN25 the the proposed/booked goods movement 281for component B is 100 (and not the desired 110).
    We would like to take the component scrap % into account at goods issue of the project.
    Is there a setting in customizng or the material masterfor this (or is the only option to use two BOM types for this)?
    regards, Herman Alkemade

    Hi Alex,
    The problem is the Apply button doesn't become active and if you click the O.K bottom the dialog box closes and the setting doesn't change, my work around is to click on the  Trace Fixed radio button and then Trace Can be Move bottom again, this should activate the Apply.  This is a known bug and it's in our system.
    Tien P.
    National Instruments

  • Updating textfield with DEL key not taking into account

    I have a decimal field which accepts only numerals...
    after modifying the value in the field and pressing an OK button...the new value is reflected in a table...
    but if i modify the same field value using the "delete" key and press OK...the new value is not taken into account....
    but the same works with "backspace" key...
    So do i need to set anything to respond to del key...
    Thanks

    Also i am not able to put the code here as it is a huge applicationI did not ask for your entire application. I asked for
    demo code means code that we can compile and execute, but it only contains the code relevant to your problem
    Here is an example:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class DemoCode extends JFrame
         JTextField textField;
         public DemoCode()
              textField = new JTextField();
              getContentPane().add(textField, BorderLayout.NORTH);
              JButton button = new JButton("Update Database");
              button.addActionListener( new ActionListener()
                   public void actionPerformed(ActionEvent e)
                        System.out.println(textField.getText());
                        textField.setText("");
                        textField.requestFocusInWindow();
              getContentPane().add(button, BorderLayout.SOUTH);
         public static void main(String[] args)
              JFrame frame = new DemoCode();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.pack();
              frame.setLocationRelativeTo( null );
              frame.setVisible(true);
    }If you can't create a simple demo then you don't understand your problem and if you don't understand your problem then how are we supposed to?
    custom field So you probably have a coding problem and we have no idea what your code looks like
    that accepts only decimal values and why are you not using JFormattedTextField?
    And this problem is not seen if i modify the custom field using any other key say like "Backspace".Again this problem doesn't make sense since the character should be removed from the text field before the OK button is pressed.

  • 6230 and HS-26W - phone doesn't go into headset mo...

    Hello, I have purchased HS-26W and try to use it with 6230. For the first few hours it was OK - I paired it and used it successfully.
    But then the battery in the headset went off, so I plugged it and let it charge. Afterwards I turned it back on and... Now I'm able to connect it to the phone, but the phone doesn't go into headset mode - there's no headset icon and you have to talk using the phone - the headset is dead, although it's connected and pretends to work - you can change the volume level etc.
    What to do with it? I tried to 'hard-reset' the phone by removing the battery, I tried to reset the headset - nothing worked.
    The bluetooth in the phone is generally OK - I've used it with CK-7W for two years by now.

    The new iPhone 3G is not compatible with the original dock. You will notice that new bluetooth headsets being sold are no longer including the dock, which must now be purchased separately. The salesperson should have informed you that the dock included in the box would only work with the original iPhone.

  • Icloud oin device is signed into account that has been deleted so cannot signout of it.  what can i do?

    icloud on iphone is signed into account that has been deleted/inactive and cannot signout of it as no pw is available and cannot reset it either as it doesn't find the apple id back.  what can i do?

    Welcome to Apple Support Communities
    Do not worry. Hold Sleep (the button you have at the top of the phone) and Home buttons at the same time until your phone restarts, and then try installing the iOS update again.

Maybe you are looking for