jeditorpane 插入符位置和字符串位置不同步

发布于 2024-09-07 04:19:58 字数 418 浏览 3 评论 0原文

我正在尝试修复这段代码中的一个错误,该错误是为 Windows 编写的,但在 Linux 中不起作用(我没有编写代码),插入符号的位置和打字位置不同步。点和标记位置相同,并且 setMagicCaretPosition 不按照我的想法工作,有什么帮助吗?(我应该监视哪些属性)

这个程序有相同/相似的问题 kernow

错误报告

I'm trying to fix a bug in this code that was made for windows but dosent work in linux( I didn't write the code), the location of the caret and the typing location is not in sync. the dot and Mark location are the same and the setMagicCaretPosition dosent work the way I think, any help?(what properties should I monitor)

this program has the same/similair issue kernow

bug report

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

野鹿林 2024-09-14 04:19:58

对于任何遇到此问题且无法找到答案的人
尝试 sudo apt-get install ubuntu-restricted-extras

任一 JVM 上都不再出现错误
java版本“1.6.0_20”
Java(TM) SE 运行时环境(版本 1.6.0_20-b02)
Java HotSpot(TM) 64 位服务器 VM(构建
或者
java版本“1.6.0_18”
OpenJDK 运行时环境 (IcedTea6 1.8) (6b18-1.8-
OpenJDK 64 位服务器 VM(内部版本 14.0-b16,混合模式)

for anyone who comes across this and cant find an answer
try sudo apt-get install ubuntu-restricted-extras

there is no longer an error on either JVM
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build
OR
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8) (6b18-1.8-
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文