Answers:
所在版块:求学狮城 发贴时间:2003-06-04 23:48

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
1) This problem has similar solution to the internationalization problem, supprisingly--use java resource bundles!
jEditorPane.setPage(YourClass.class.getResource("relative_path/file.html"));


2) The problem of your approach of contant class: no one can customize your application for a new language without knowning Java! Instead, if you do it using ResourceBundle + MessageFormat, the correct resource (.properties file) can be automatically loaded for the user system's default locale, and the correct language will be used automatically. Also, someone else can localize your application without a simple text editor without using any JDK at all.
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

Flying @way 吳穎暉
 相关帖子 我要回复↙ ↗回到正文
共享一个Personal Organiser软件。 我心为谁动   (139 bytes , 526reads )
What are the functions that are not implemented? Flying   (68 bytes , 192reads )
yes, those are the functions. 我心为谁动   (1189 bytes , 228reads )
another thing is regarding multi-language version. 我心为谁动   (367 bytes , 202reads )
I can answer some of your doubts: Flying   (569 bytes , 230reads )
doubts: 我心为谁动   (411 bytes , 144reads )
Searching itself is a tough problem. Flying   (131 bytes , 149reads )
reply to Answers: - Flying (reply can't go deeper) 我心为谁动   (281 bytes , 173reads )
Answers: Flying   (658 bytes , 205reads )