Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how can i set jdialog title to support Unicode languages  RSS feed

 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a jdialog,i need to set it's title to different language.
languages which are supported by unicode.
how can i do this.
 
Raji Raj
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi you have to use the property file.
 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi thanks for the quick reply ,i am searching for more details.
when i set jdialog title with different language,it is showing characters properly

will you please give me more description about how to use property file for this.
 
Raji Raj
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you will use only one lanuage title at a time??
 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes i will be using only one language at a time.
i have string in chinese,when set that string to jbutton text it's working fine and when i put the same for jdialog title it is showing different characters.
 
Rob Spoor
Sheriff
Posts: 21090
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I18N
 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am setting title by using unicode characters

String str = "\u30CD\u30CE";
dialog.setTitle(str);

that is working fine but when i try with "\u12e8\u1270"
characters it not not working.
any idea.


 
Rob Spoor
Sheriff
Posts: 21090
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) What should these two characters represent?

2) Are you using a font that supports these characters?
 
sudheer kiran
Ranch Hand
Posts: 237
Firefox Browser MyEclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying to use Amharic font.all other languages like japanese, chinese are working.
but not Amharic,any ideas please.

i am working on XP, if i set Display >>Appearance>> Advanced >>select Item Active Title Bar as Unit Font then it's working.
but i need solutionprogramatically.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!