Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Arabic Display on Applet  RSS feed

 
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 ]
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!