Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Carl Waldbieser <waldbie@ve...> - 2004-12-06 04:30:48
Is it possible to pass data back and forth between an applet written using
attempting to write a very simple spread-sheet like grid applet, and I want
I thought that maybe if I defined extra methods on the class I am deriving
from JApplet, (e.g. setValueAt(value, x, y), getValueAt(x, y)), these would
that those attributes don't exist.
exist, and all the public properties/methods from the JApplet class seem to
be there, as well as some of the extra methods created during the jythonc
compile (e.g. _PyGetInstance() -- might have spelled this one wrong).
I can go to a jython interactive prompt, import my derived class, and do a
dir() on it and see that my custom methods exist, so I am not quite sure what
is going on.
I have tried this on my WinXP machine using both Firefox 1.0 and IE 6. Both
indicate that the attributes are not present. Firefox also has some strange
wanted to test the applet with, and immediately after I press the (HTML)
button, the applet "resets", and all the data I typed in vanishes. This
This behavior does not occur with IE, so I am not sure if this is just a
browser bug (I am also not sure which browser would be displaying the buggy
behavior-- for all I know, maybe I need some sort of code to make the applet
I am using JDK 1.5, but I am passing a "-source 1.2" to the javac compiler to
get jythonc to compile-- I am not sure if this is a source of problems,
either. The Java numbering/versioning schemes confuse me to no end.
I can post my sample code if anyone is interested.
From: Carl Waldbieser <waldbie@ve...> - 2004-12-08 01:07:58
After re-reading the Jython docs, I determined I was not using the special
"@sig ..." docstring for the methods I wanted to expose to the web page.
However, I am still experiencing the strange page resetting behavior in
Firefox 1.0 on Windows XP and Windows 2000. Additionally, I have tested this
behavior on Safari on Mac OS X, and I have noticed this behavior as well.
Internet Explorer seems to be the only browser reacting the way I would
expect. Does anyone have any thoughts?
> Firefox also has some
> strange behavior-- I put some HTML buttons on the page to execute the
> the (HTML) button, the applet "resets", and all the data I typed in
> vanishes. This happens even if I comment out all the code in the
> sure if this is just a browser bug (I am also not sure which browser would
> be displaying the buggy behavior-- for all I know, maybe I need some sort
> of code to make the applet repaint itself?).