Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Swing Localisation Bugs ?

Dave Brown
Ranch Hand
Posts: 301
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Evenin All...

Are there areas of 'unfinished' code in swing ?

What i'm referring to is the locale implementations, here's what I found today and dont find any explanation yet rather than theres a bug, or they left this area unfinished...

1. Setting the default Swing Locale to Spanish rather than my english Locale, when my program starts up and then later shows a JFrame, when the user closes the JFrame I show a plain JOptionPane just passing a string to it.. the default Title of the optionpane is not reflected by the spanish Locale, however everything else on my JFrame was. So in the initialisation of the JFrame I performed a this.setLocale(spanishLocale); Which then solves the problem for the JOptionPane. Surely it should have inherited the default locale that was set, I shouldnt have to set it again for the container :|

2. The JOptionPane itself.. Why oh Why do we have to supply our own locale properties for the yes/no buttons etc.. They have gone halfway and done everything for other components so why leave out the optionpane buttons ? That just seems a bit of a half arsed job to me :-(
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic