Help, just updated to 1.1.4 and the coversion of a ruby string array
to a java string array is no longer working. This worked on 1.1.3. I
looked at the wiki and it may be outdated, any help thanks. This is
the error.
no constructor with arguments matching [class
org.jruby.java.proxies.ArrayJavaProxy, class
org.jruby.java.proxies.ArrayJavaProxy] on object
#Java::JavaxSwingTable::DefaultTableModel:0xd929211 (NameError)
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Johnny P wrote:
Help, just updated to 1.1.4 and the coversion of a ruby string array
to a java string array is no longer working. This worked on 1.1.3. I
looked at the wiki and it may be outdated, any help thanks. This is
the error.
no constructor with arguments matching [class
org.jruby.java.proxies.ArrayJavaProxy, class
org.jruby.java.proxies.ArrayJavaProxy] on object
#Java::JavaxSwingTable::DefaultTableModel:0xd929211 (NameError)
This looks like a two-dimensional array, yes? That did “regress” though
mostly because it was a peculiar way the logic worked. If you have two
arrays of String you’d like to convert to a Java String[][] in 1.1.5
you’ll use to_java java.lang.String[] instead. Under 1.1.4, I would
recommend converting the contained arrays yourself:
jstr_ary_ary = my_str_ary.map {|ary| ary.to_java :string}
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
I’d have to go back over the logs to see which features were added/fixed
when, but at least you’re up and going 
Johnny P wrote:
include_package 'javax.swing.table'
to a java string array is no longer working. This worked on 1.1.3. I
converting the contained arrays yourself:
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Yes, and thanks. I was able to use under 1.1.4 the below which is what
you mentioned for 1.1.5? I won’t question it since it is nice to have
it early 
module JavaLang
include_package “java.lang”
end
module JavaxSwing
include_package ‘javax.swing’
module Table
include_package ‘javax.swing.table’
end
end
model =
JavaxSwing::Table::DefaultTableModel.new(data.to_java(JavaLang::String[]),
columns.to_java(JavaLang::String))
On Wed, Oct 1, 2008 at 6:55 AM, Charles Oliver N.
[email protected] wrote:
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email