File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Display Unicode value in JTextField Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Display Unicode value in JTextField" Watch "Display Unicode value in JTextField" New topic
Author

Display Unicode value in JTextField

mustafa bamboat
Greenhorn

Joined: May 22, 2005
Posts: 8
Hi,

I have a column in oracle table having data type as NCHAR, and carrying value in UNICode (i.e. its a person name in urdu language).

Right now I retrieved the above column value from oracle by using below statement:

ResultSet rs = ((OracleCallableStatement)stmt).getCursor(2);

while(rs.next()){

setDataArray(rs.getString(1));// Ignore this line; its working fine
setDataArray(rs.getString(2));//Ignore this line; its working fine
Reader name_native = rs.getCharacterStream(3);

}

Now, I don't know how to convert above Reader object for JTextField to display Unicode value.

Therefore, its my request to help me to resolve this issue, or may be I am not on the right path then please suggest me what to do; to accomplish the task i.e. display urdu in JTextField.

Looking forward to your kind and positive response.

Regards,

M.A.Bamboat
bamboat_3@hotmail.com
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4523
    
    5

Set a Font that has glyphs for those characters. One of the overloads of the canDisplay(...) or canDisplayUpTo(...) method may be useful to help find one.

Arial Unicode looks to be a likely candidate.


luck, db
There are no new questions, but there may be new answers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Display Unicode value in JTextField
 
Similar Threads
utf8 to unicode..from browser to oracle db
Swing JCombobox and JTable issue
JComboBox problem
ArrayList seems to be not working
Problem to display clob data