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.
【在 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.
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
【在 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