Two Laptop Bag
The moose likes Groovy and the fly likes Groovy - SwingX - MultiSplitPane exception Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Other Languages » Groovy
Reply Bookmark "Groovy - SwingX - MultiSplitPane exception" Watch "Groovy - SwingX - MultiSplitPane exception" New topic
Author

Groovy - SwingX - MultiSplitPane exception

Josh Brown
Ranch Hand

Joined: Oct 09, 2007
Posts: 35
On the Groovy website, there's an example for the SwingXBuilder showing how to use a MultiSplitPane. I'm unable to get it to work, as it's throwing an IllegalArgumentException. I'm using Groovy 1.1-rc-1 with swingxbuilder-0.1.2.jar. Anybody know what might be wrong? The code is below:



Here's the first part of the stack trace (the entire stack trace is really long and ugly):

java.lang.RuntimeException: Failed to create component for 'split' reason:
groovy.lang.GroovyRuntimeException: failed to invoke constructor: public groovy.swing.GroovySplit(groovy.util.Node[]) with arguments:
{[MultiSplitLayout.Leaf "center" weight=0.0 java.awt.Rectangle[x=0,y=0,width=0,height=0]]} reason:
java.lang.IllegalArgumentException: argument type mismatch

[ October 16, 2007: Message edited by: Josh Brown ]

Josh
Inside the Machine
 
 
subject: Groovy - SwingX - MultiSplitPane exception
 
developer file tools