[Hecl-devel] Object arg, from java to hecl!
Brought to you by:
davidw
From: Martin M. <DO...@gm...> - 2009-01-29 10:59:00
|
Hi, I have problem with object arguments that i want pass from java to hecl. In the MwtManager class there is the paint(Graphics g) method that will called each time by the thread. The idea i want try out i to do following: // in MwtManager.java public void paint(Graphics g) { //execHeclCmd is an interface that will implemented by MwtManagerCmd execHeclCmd.evalPaint(g); ... ... ... } // in MwtManagerCmd.java ... ... ... public void evalPaint(g) { interp.evalIdle(new Thing("paint ") + g); } //in script.hcl proc paint {g} { $g frect [list 10 10] [list 10 80] } I get any error! Unknown command javax.microedition.lcdui.Graphics@af4354 ....! I have done also: interp.evalIdle(new Thing("paint ") + ObjectThing.create(g)); and interp.evalIdle(new Thing("paint ") + new ObjectThing(g)); But always i get this error. Does anybody knows what i do wrong and how it could be done??? Thanks in advance! Maritn -- NUR NOCH BIS 31.01.! GMX FreeDSL - Telefonanschluss + DSL für nur 16,37 EURO/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a |