On Sep 16, 3:39 pm, Hannes Wallnoefer <[EMAIL PROTECTED]> wrote: > See the "Explicit Method Specification" section in the LiveConnect 3 > method overloading documentation: > > http://www.mozilla.org/js/liveconnect/lc3_method_overloading.html#Exp... > > The following should work for you: > > splitPane["setDividerLocation(int)"](n); > > hannes > > On Sep 16, 9:11 pm, europe72 <[EMAIL PROTECTED]> wrote: > > > Assuming var foo = new Packages.javax.swing.JSplitPane(); > > ... > > foo.setDividerLocation(300); > > > JSplitPane supports two methods for setDividerLocation(). One takes a > > double as a parameter and the other an int. e.g > > setDividerLocation(double) and setDividerLocation(int). The two > > methods do different things. I want to use setDividerLocation(int). > > How do I do this in JS/Rhino considering there is no Integer in > > JavaScript? Meaning how do I pass from JS an integer parameter to a > > Java method. > > > Thanks in advance
Great. Thanks...exactly what I was looking for. _______________________________________________ dev-tech-js-engine-rhino mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino
