• Post Reply Bookmark Topic Watch Topic
  • New Topic

Locale Specific Icons  RSS feed

 
Chiranjeevi Kanthraj
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi i want to write the code for i18n
i want to change the Icons of messages and wornings and errors according to the Locale.

How can i do that. help me
Thanks
 
Guido Sautter
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guess you're talking about JOptionPane. You can submit a custom Icon with all the invokations of one of its showXyzDialog() methods.

For providing the icons, I'd suggest some central IconFactory class with a static getXyzIcon() method, which you put the custom icons in at startup, and retrieve them for every JOprionPane method you invoke.

Hope that helps.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!