Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4496112
By: cyberco

This may be a Jython issue, but I'm not sure:

A JSplitPane has the following 2 methods 

'setDividerLocation(int pixels)'
'setDividerLocation(double percentage)'

I want to invoke the latter but:

'split = JSplitPane(dividerLocation=java.lang.Double(0.25))'

throws an exception:

'can't convert 0.25 to int'

Why does Jython try to convert the double to an int? 
So I try:

split.setDividerLocation(java.lang.Double(0.25))

which doesn't throw an exception (but doesn't seem to work either).

Is there a workaround?

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit: 
https://sourceforge.net/forum/unmonitor.php?forum_id=293649

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to