• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Arabic Display on Applet

 
Anoosh Rahman
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Please let me know how we can display arabic letters on an Applet, I am trying with unicode but not working. dropping piece of code . please help me.
import java.awt.*;
import java.applet.*;
import java.util.*;
public class AppletDemo extends Applet{
public void paint(Graphics g){
Locale currentLocale;
ResourceBundle messages;


currentLocale = new Locale("ar", "SA");
setLocale(currentLocale);
messages = ResourceBundle.getBundle("rb/SAUCM",currentLocale);
g.drawString(messages.getString("sau.CM.arabicLetter"),15,50);
}
}
[ January 07, 2003: Message edited by: Anoosh Rahman ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic