Redian新闻
>
swing 在 mac intel 下的bug怎么修正?
avatar
swing 在 mac intel 下的bug怎么修正?# Java - 爪哇娇娃
p*i
1
我写的程序在MAC Intel 下不能运行,主要是因为我用了JFrame,看大家的说法好像已
经修正了这个bug,但是我在
MAC Intel下开发的时候用的是MAC 提供的JAVA,应该怎么做?请高人指点!
avatar
g*g
2
Get the latest JDK from Sun?

【在 p**i 的大作中提到】
: 我写的程序在MAC Intel 下不能运行,主要是因为我用了JFrame,看大家的说法好像已
: 经修正了这个bug,但是我在
: MAC Intel下开发的时候用的是MAC 提供的JAVA,应该怎么做?请高人指点!

avatar
c*t
3
JFrame itself is not the problem. In fact, the Swing in general is fine
under Mac. Just need to be careful that some functions must be called
within the event thread, or exceptions would occur.
Also, Mac version of JVM tweaked graphics drawing routines. These are
much harder to deal with.

【在 p**i 的大作中提到】
: 我写的程序在MAC Intel 下不能运行,主要是因为我用了JFrame,看大家的说法好像已
: 经修正了这个bug,但是我在
: MAC Intel下开发的时候用的是MAC 提供的JAVA,应该怎么做?请高人指点!

avatar
p*i
4
swing 和 SWT 你建议用哪个?我的程序刚完成0.0版,现在改还来得及。
我用的jogl做图形处理的!

【在 c*****t 的大作中提到】
: JFrame itself is not the problem. In fact, the Swing in general is fine
: under Mac. Just need to be careful that some functions must be called
: within the event thread, or exceptions would occur.
: Also, Mac version of JVM tweaked graphics drawing routines. These are
: much harder to deal with.

avatar
c*t
5
Both are good, and there pros and cons.
If I remember correctly, jogl can be used using Swing component,
but performance may suffer. If you are using heavy weight component
(such as Canvas), then there are issues with mixing with Swing
components, although it is fairly easy to deal with. If you are
using some sort of docking frameworks, however, then you will
experience some difficulties dealing with heavy weight component.
For SWT, it has GLCanvas, although the documentation seems to
indicate

【在 p**i 的大作中提到】
: swing 和 SWT 你建议用哪个?我的程序刚完成0.0版,现在改还来得及。
: 我用的jogl做图形处理的!

avatar
p*i
6
谢谢!

【在 c*****t 的大作中提到】
: Both are good, and there pros and cons.
: If I remember correctly, jogl can be used using Swing component,
: but performance may suffer. If you are using heavy weight component
: (such as Canvas), then there are issues with mixing with Swing
: components, although it is fairly easy to deal with. If you are
: using some sort of docking frameworks, however, then you will
: experience some difficulties dealing with heavy weight component.
: For SWT, it has GLCanvas, although the documentation seems to
: indicate

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。