It's a bit off-topic but for the record it was a version problem. These applets were originally written in a Mac-specific RAD program (SuperCard) and I ported them to Java after taking a year out to do a Masters in IT in the context of the collapse of the student Mac platform in this Uni. I wrote them in Java 1.1, but eventually the animation aspects failed due to changes in the JVM (much to my surprise) so last year I redid the animation (with a lot of help from the Mac Java list) and at the same time Swingified the interface - more to "future-proof" it than anything else. Inadvertantly I forgot to do the ContentPane magic, which didn't matter as my development machine was running Java 1.5 and the student machines that or higher. In Java 1.5 Sun presumably realized that the ContentPane layer was a pain that could be avoided. However it doesn't run under Java 1.4.

David

PS Bob. GMSIntegration is the name of the class for applet entry. The error indicates I should have done:
ContentPane cPane = new ContentPane();
cPane.setLayout(new BorderLayout());

rather than this.setLayout...

I think the main issue with Java applets is simply that, as here (I think),
if you build them with more advanced versions of Java, you have to be
careful about doing them in such a way as they are compatible with earlier versions if you want to provide broad accessibility and no surprises. We've
made Jmol Java 1.4 compatible for these reasons.

I don't know if that is really the problem in this case, but it could be.

That's a very odd message -- it isn't coming from Java. It's coming from
whatever custom package "GMSIntegration" is. What is that, anyway?

Bob


On Mon, Mar 16, 2009 at 9:45 AM, David Leader <d.lea...@bio.gla.ac.uk>wrote:


Rolf wrote:

and although this might be easier, I did it my way. Don't see anything
like this in Flash out on the web.

http://doolittle.ibls.gla.ac.uk/leader/GMS/index.html

When I tried to run the applets with Java 1.4.2_18 in Firefox 3.0.4 on Linux I got the following error messages and the applets didn't start:

--------- Excercise, Feeding & Tasting ---------------------
java.lang.Error: Do not use GMSIntegration.setLayout() use
GMSIntegration.getContentPane().setLayout() instead
at javax.swing.JApplet.createRootPaneException(JApplet.java:203)
at javax.swing.JApplet.setLayout(JApplet.java:264)
at GMSIntegration.init(GMSIntegration.java)
at sun.applet.AppletPanel.run(AppletPanel.java:356)
at java.lang.Thread.run(Thread.java:534)

---------- Gluconeogenesis - Urea Cycle --------------------
java.lang.Error: Do not use GMSQuiz.setLayout() use
GMSQuiz.getContentPane().setLayout() instead
at javax.swing.JApplet.createRootPaneException(JApplet.java:203)
at javax.swing.JApplet.setLayout(JApplet.java:264)
at GMSQuiz.init(GMSQuiz.java)
at sun.applet.AppletPanel.run(AppletPanel.java:356)
at java.lang.Thread.run(Thread.java:534)

Regards,
Rolf


That's the problem with Java: write once, debug everywhere.When I have a moment I'll try to fix it on principle, but there are no problems on the development platform (Mac) or the University client platform (Windows).

___________________________________________________

Dr. David P. Leader, Faculty of Biomedical & Life Sciences,
University of Glasgow, Glasgow G12 8QQ, UK
Phone: +44 (0)141 330 5905
http://doolittle.ibls.gla.ac.uk/leader
http://motif.gla.ac.uk/

The University of Glasgow, charity number SC004401
___________________________________________________





------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to