先在editor_zh-CN.properties中将中文配置好,
shapes=\u5F62\u72B6
images=\u56FE\u5F62
。。。
symbols=\u7B26\u53F7
file=\u6587\u4ef6
new=\u65b0\u5efa
然后将文件添加到 mxResources中,
mxResources
.add("com/mxgraph/examples/swing/resources/editor_zh-CN");<pre class="java" name="code">String value=mxResources.get("value"),
本文介绍如何在mxGraph编辑器中配置中文资源文件。通过编辑editor_zh-CN.properties文件并设置相应的中文标签,再将其添加到mxResources中,实现编辑器界面的中文显示。
401

被折叠的 条评论
为什么被折叠?



