BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Displaying Japanese

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE
View previous topic :: View next topic  
Author Message
Jesse Wilson
Guest





PostPosted: Mon Apr 18, 2005 12:42 am    Post subject: Displaying Japanese Reply with quote



Is it possible to have JBuilder (2005 Enterprise) display Japanese
characters within the IDE - both in the editor and designer? I have been
unable to find this information elsewhere and any help would be greatly
appreciated. Thanks.

Jesse Wilson
Back to top
Jesse Wilson
Guest





PostPosted: Mon Apr 18, 2005 12:44 am    Post subject: Re: Displaying Japanese Reply with quote



Jesse Wilson wrote:
Quote:
Is it possible to have JBuilder (2005 Enterprise) display Japanese
characters within the IDE - both in the editor and designer? I have been
unable to find this information elsewhere and any help would be greatly
appreciated. Thanks.

Jesse Wilson

Forgot to note that this is on an English language install of Windows XP
Professional. I have the latest Java SDK/JRE installed as well.

Back to top
Adam Gawne-Cain
Guest





PostPosted: Sat Apr 23, 2005 7:24 am    Post subject: Re: Displaying Japanese Reply with quote



Jesse Wilson wrote:
Quote:
Is it possible to have JBuilder (2005 Enterprise) display Japanese
characters within the IDE - both in the editor and designer? I have been
unable to find this information elsewhere and any help would be greatly
appreciated. Thanks.

Jesse Wilson


Several steps required:

0) Make sure your OS support Japanese. I can't remember whether XP
always does this nowadays, but you used to have to add support when
installing the OS.

1) Set your JB project source encoding to one that supports Japanese
characters (eg UTF-8 or SJIS). To do this, use Project-Properties
command, Project tab, General tree item, Encoding text field.

2) Set JBuilder's JRE to support Japanese fonts. To do this, rename the
file "font.properties.ja" to just "font.properties". I suggest that you
save the old "font.properties" in case you want to undo these changes!
In my installation, the relevent folder is
"C:BorlandJBuilder2005jdk1.4jrelib". Of course, you need to
restart JBuilder to get these changes.

3) Set JBuilder's default fonts to standard Java fonts, which use the
"font.properties" file. To do this, use Tools-Preferences command,
Fonts tree item, Font family combo. You need to select a font like
"DialogInput", and not one of the OS fonts (ie not "Lucida Sans
Typewriter").

4) Now, you should be able to load a UTF-8 source file (or SJIS if you
encoding is SJIS) that contains Japanese, and see the Japanese in the
editor.

5) To get Japanese text at runtime, you need to set your runtime JRE to
support Japanese fonts (same as step 2, but with your runtime JRE).

6) In Swing, the components that use a standard Java font should now
show Japanese text. But in some Look-And-Feels, some components do not
use a standard Java font. You can either change these fonts to "Dialog"
etc, or do the optional step 7.

7) Change the Windows "Language for non-Unicode programs". To do this,
you can use Control-Panel, Regional and Language Options, Advanced Tab.
This is quite a deep change to your OS, so beware. I usually dont do
this step for day-to-day development.

Problems:
a) I think that JB2005 seems to occasionally change Japanese source
strings to uxxxx representation when saving the file.

b) I cannot get JB2005 to show Japanese in the console output window.
However, by running in an XP Command Prompt window, I can see the
correct Japanese output.

c) I don't use JB's GUI designer, so I dont know whether these steps
will work. My guess is that it will work OK after step 5.

d) To make compiling in different environments easier, I suggest that
you keep all Java source in ASCII, by using the native2ascii tool.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.