JavaFx-许可证未以正确格式显示
我实现了javafx独立应用程序。我为许可证提供了.rtf文件。它在windows中正确显示,但在Mac中,格式已更改。请参阅下图。为什么?我们如何修复它JavaFx-许可证未以正确格式显示,javafx,Javafx,我实现了javafx独立应用程序。我为许可证提供了.rtf文件。它在windows中正确显示,但在Mac中,格式已更改。请参阅下图。为什么?我们如何修复它 Code 构建、测试和运行项目。 你能给我看看这个窗口的源代码吗?我想看看你怎么显示文本。@PeterPenzov:我不明白你在问什么。你是指许可证文件内容还是windows许可证映像?你能给我们看一下源代码吗?这个问题与Oracle文档中的问题类似,只有windows使用rtf,而OSX使用纯文本文件。 <target nam
Code
你能给我看看这个窗口的源代码吗?我想看看你怎么显示文本。@PeterPenzov:我不明白你在问什么。你是指许可证文件内容还是windows许可证映像?你能给我们看一下源代码吗?这个问题与Oracle文档中的问题类似,只有windows使用rtf,而OSX使用纯文本文件。
<target name="-pre-jfx-jar" depends="copy-build-properties" />
<target name="copy-build-properties" >
<copy file="config${file.separator}abs-client-build.properties"
todir="${basedir}${file.separator}${build.classes.dir}${file.separator}/config" />
</target>
<target name="-post-jfx-deploy" depends="-check-jfx-deployment">
<fx:application id="abs-client" name="${application.title}"
mainClass="${javafx.main.class}"/>
<fx:deploy width="100" height="100" includeDT="false"
nativeBundles="all"
embeddedWidth="100%" embeddedHeight="100%"
outdir="${basedir}/${dist.dir}" embedJNLP="true"
outfile="${application.title}" verbose="true">
<fx:application refId="abs-client"/>
<fx:resources>
<fx:fileset dir="${basedir}/${dist.dir}" includes="shore-abs.jar"/>
<fx:fileset dir="${basedir}/${dist.dir}" includes="lib/**"/>
<fx:fileset type="license" dir="${basedir}" includes="license.rtf"/>
</fx:resources>
<fx:info title="${application.title}"
vendor="${application.vendor}"/>
</fx:deploy>
< /target>