urdu fonts support in java

how can i use the urdu font in java?secondly after using how the character is calculated to be printed.. suppose you pressed 'a' and the program prints 'c'? is it possible?
[197 byte] By [asifqz] at [2007-9-26 3:53:47]
# 1

hi my name is adnan

u can use arbic font instead of urdu font this can help u and java support arbic font i wana send u some piece of code which can help u it help me much i hope it will help u.use urdu unicode instead arabic it can help u ok by with best

wishes

Muhammad Adnan Siraj Doger

import java.lang.*;

import java.util.Locale;

import javax.swing.*;

import java.awt.*;

import java.awt.event.*;

import javax.swing.*;

import java.util.Locale;

public class test {

public static void main (String [] args)

{

String test = "\u0631\u0627\u0626\u062F";

JFrame frame = new JFrame("Test");

JPanel panel = new JPanel();

JTextField test1 = new JTextField(test);

test1.setFont(new Font("Lucida", Font.PLAIN, 12));

panel.setLayout(new BorderLayout());

panel.add(test1,BorderLayout.CENTER);

frame.getContentPane().add(panel, BorderLayout.CENTER);

frame.setSize(100,100);

frame.setVisible(true);

}

}

007Asiraj at 2007-6-29 12:42:20 > top of Java-index,Desktop,Core GUI APIs...