How to use setTransferable with JRuby?

I use the following code:

table.set_drag_enabled true # table is a JXTable descendant
table.setTransferHandler DragAndDropTransferable.new(“item”)

class DragAndDropTransferable < TransferHandler
end

class JXTableExtendet < ::JXTable

  def getItem
     return "Hello World"
  end

  def setItem value
     puts value
  end

end

The problem is that item isn’t recognized as an Java Beans property, so
the Drag and Drop doesn’t start. If I use foreground for example
everything works. Is it possible to make this work with JRuby and a
custom property ?

Regards
Roger

BTW: I’m using JRuby 1.4 right now

To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs