The Artima Developer Community
Sponsored Link

Java Answers Forum
Problem with AWT and Unicode

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Roki

Posts: 5
Nickname: rambo
Registered: Nov, 2002

Problem with AWT and Unicode Posted: Feb 13, 2006 12:35 PM
Reply to this message Reply
Advertisement
It seems that AWT components doesn't render Unicode characters well.

I have an applet that contains:

...
String str = "ma\u010Dak";
...
Checkbox r_button = new Checkbox();
r_button.setLabel(str);
...

Previous code doesn't render unicode char \u010D well. It renders small box sign.
But if I switch to Swing, everything works OK:

...
String str = "ma\u010Dak";
...
JRadioButton r_button = new JRadioButton();
r_button.setText(str);
...

Q: Why AWT does'n display Unicode chars correctly? Is there any workaround?

Topic: login/logout using swing/java Previous Topic   Next Topic Topic: i need JExePack v3.4c. Where can i find it?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use