christmo / macwidgets

Automatically exported from code.google.com/p/macwidgets
0 stars 0 forks source link

Mac Widgets has problems with newer versions of JGoodies forms 1.2.1 #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I already have a dependency in my project on JGoodies forms, and thus have
forms-1.2.1.jar in my classpath. 

This exception is thrown: 

Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException:
The resize argument 'grow center' is invalid.  Must be one of: grow, g,
none, n, grow(<double>), g(<double>)
    at com.jgoodies.forms.layout.FormSpec.parseResizeWeight(FormSpec.java:436)
    at com.jgoodies.forms.layout.FormSpec.parseAndInitValues(FormSpec.java:288)
    at com.jgoodies.forms.layout.FormSpec.<init>(FormSpec.java:181)
    at com.jgoodies.forms.layout.ColumnSpec.<init>(ColumnSpec.java:161)
    at com.jgoodies.forms.layout.ColumnSpec.decodeExpanded(ColumnSpec.java:240)
    at
com.jgoodies.forms.layout.FormSpecParser.parseColumnSpecs(FormSpecParser.java:13
0)
    at
com.jgoodies.forms.layout.FormSpecParser.parseColumnSpecs(FormSpecParser.java:10
6)
    at com.jgoodies.forms.layout.ColumnSpec.decodeSpecs(ColumnSpec.java:280)
    at com.jgoodies.forms.layout.FormLayout.<init>(FormLayout.java:402)
    at com.jgoodies.forms.layout.FormLayout.<init>(FormLayout.java:359)
    at
com.explodingpixels.macwidgets.TriAreaComponent.<init>(TriAreaComponent.java:58)
    at
com.explodingpixels.macwidgets.TriAreaComponent.<init>(TriAreaComponent.java:49)
    at
com.explodingpixels.macwidgets.MacWidgetFactory.createUnifiedToolBar(MacWidgetFa
ctory.java:59)
...

Original issue reported on code.google.com by steve.mc...@gmail.com on 14 Sep 2008 at 7:10

GoogleCodeExporter commented 8 years ago

Original comment by kenneth....@gmail.com on 15 Sep 2008 at 10:49

GoogleCodeExporter commented 8 years ago
I can confirm this issue against version 1.2.0 of forms as well.

Exception in thread "main" java.lang.IllegalArgumentException: The resize 
argument 'grow 5px p 5px' is 
invalid.  Must be one of: grow, g, none, n, grow(<double>), g(<double>)
    at com.jgoodies.forms.layout.FormSpec.parseResizeWeight(FormSpec.java:436)
    at com.jgoodies.forms.layout.FormSpec.parseAndInitValues(FormSpec.java:288)
    at com.jgoodies.forms.layout.FormSpec.<init>(FormSpec.java:181)
    at com.jgoodies.forms.layout.ColumnSpec.<init>(ColumnSpec.java:161)
    at com.jgoodies.forms.layout.ColumnSpec.decodeExpanded(ColumnSpec.java:240)
    at com.jgoodies.forms.layout.FormSpecParser.parseColumnSpecs(FormSpecParser.java:130)
    at com.jgoodies.forms.layout.FormSpecParser.parseColumnSpecs(FormSpecParser.java:106)
    at com.jgoodies.forms.layout.ColumnSpec.decodeSpecs(ColumnSpec.java:280)
    at com.jgoodies.forms.layout.FormLayout.<init>(FormLayout.java:402)
    at com.jgoodies.forms.layout.FormLayout.<init>(FormLayout.java:359)
    at 
com.explodingpixels.macwidgets.SourceListItemCellRenderer.<init>(SourceListItemC
ellRenderer.java:35)
    at com.explodingpixels.macwidgets.SourceList.<init>(SourceList.java:107)

Original comment by warren.j...@gmail.com on 15 Sep 2008 at 9:18

GoogleCodeExporter commented 8 years ago
The version of Forms that I was using (1.0.7) was, unfortunately, forgiving. I 
didn't have comma separators 
between the arguments in the row and column specs. I've added the separators 
and verified that there are no run 
time exceptions.

Original comment by kenneth....@gmail.com on 15 Sep 2008 at 9:36