Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#14 Locale doesn't work for textbox DatePicker

v1.0_(example)
wont-fix
teddybear
None
7
2014-03-18
2011-12-08
Anonymous
No

Hi, I just found an issue trying to change the locale for DatePicker.
The locale works for the drop-down calendar, but doesn't work for the Text field.
Please update for that.
Thanks you,
Best regards,
Long Vo

Discussion


  • Anonymous
    2011-12-08

    • priority: 5 --> 7
    • assigned_to: nobody --> michaelbaranov
     
  • PhoneixS
    PhoneixS
    2013-05-21

    I think this problem is a problem with DateFormat of java. Can you tray the last version of java and Microba components?

    The next example show 13 déc. 2013.

    /**
     * Launch the application.
     */
    public static void main(String[] args) {
        JFrame frame = new JFrame();
        frame.setBounds(100, 100, 450, 300);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    
        DatePicker myDP = new DatePicker(new Date(), DateFormat.MEDIUM, Locale.FRENCH);
    
        frame.getContentPane().add(myDP);
    
        myDP.addCommitListener(new CommitListener() {
    
            @Override
            public void commit(CommitEvent event) {
                System.out.println("I have been changed!");
            }
        });
        frame.setVisible(true);
    }
    
     
  • teddybear
    teddybear
    2014-03-18

    • status: open --> wont-fix
    • Group: --> v1.0_(example)