From: Mark P. <mp...@ps...> - 2002-06-06 01:02:48
|
Hi I am having the exact same problem as Daniel. When starting a GLJPanel and GLAnimPanel app it gives me the class cast exception in mac os x. Is there a fix? What should I do in the meantime. Gerard, you mentioned that this problem occurs if hwaccel is on. Should I turn it off for the time being, and if so, how? Thanks for any help. Mark On Tuesday, March 19, 2002, at 01:16 PM, gerard ziemski wrote: > Daniel > > The hwaccel mechanism in Apple's Java implementation uses OpenGL. > Currently, if you turn hwaccel on, you will run into problems if you > try to run gl4java at the same time. It should be easy to make gl4java > work with hwaccel, after all, they use the same hardware accelerated > surface, so the entire step of gl4java asking and pinning down its own > hwaccel surface goes away. But it takes time, however little, to do it > and right now I'm busy working on Java and preparing for WWDC. After > all what good is gl4java without kick ass Java support underneath it > right? ;-) > > I will look at gl4java shortly and update it. > > cheers > > >> Date: Sat, 16 Mar 2002 23:34:40 +0100 >> From: Daniel Bisig <db...@if...> >> To: gl4...@li... >> Subject: [gl4java-usergroup] osx & swing problems >> >> Hi all, >> >> I trying to get the swing demo files to run under Mac OS X 10.1.3. The >> gl4java Version is 2.7.2.0. which I downloaded from Gerard Ziemski >> page. >> At the moment, these demos and all the other examples that I found >> which >> make use of either GLAnimPanel or GLJPanel produce the follwing >> exception: >> >> An exception is thrown, while creating a GL context >> >> java.lang.ClassCastException: >> com.apple.mrj.internal.awt.basepeers.VContainerPeer >> java.lang.ClassCastException: >> com.apple.mrj.internal.awt.basepeers.VContainerPeer >> ...etc... >> >> I have no clue whether this is a problem of apple's java implementation >> or of gl4java. I would really like to include some opengl functionality >> in my visualization program which makes heavy use of swing. For this >> reason I appreciate any tips and tricks how to get gl4java and swing to >> work under Mac OS X. >> >> Thanks in advance! >> >> Daniel > > > _______________________________________________ > gl4java-usergroup mailing list > gl4...@li... > https://lists.sourceforge.net/lists/listinfo/gl4java-usergroup > |