You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Duto <ol...@pasteur.fr> on 2010/07/31 23:40:47 UTC

TabPane where Form horizontal fill

I need to use a Form in TabPane where Form horizontal fill on TabPane  :

<Window title="Hello WTKX!" maximized="true" xmlns="org.apache.pivot.wtk">
    <content>
        <TabPane>
            <tabs>
                <Border TabPane.label="test">
                    <content>
                        <Form styles="{showFirstSectionHeading:true}">
                            <sections>
                                <Form.Section>
                                    <BoxPane><Label text="test"/></BoxPane>
                                </Form.Section>
                            </sections>
                        </Form>
                    </content>
                </Border>
            </tabs>
        </TabPane>
    </content>
</Window>


But I get this Exception : 
An error occurred while processing  element <Border> starting at line number
5 in file
/C:/Java/Projects/TestPivot/target/classes/fr/pasteur/helloword.wtkx:
java.lang.IllegalArgumentException: width is negative.
	at org.apache.pivot.wtk.Component.setSize(Component.java:865)
	at
org.apache.pivot.wtk.skin.terra.TerraFormSkin.layout(TerraFormSkin.java:734)
	at org.apache.pivot.wtk.Component.layout(Component.java:1926)
	at org.apache.pivot.wtk.Container.layout(Container.java:323)
	at org.apache.pivot.wtk.Component.validate(Component.java:1917)
	at org.apache.pivot.wtk.Container.layout(Container.java:327)
	at org.apache.pivot.wtk.Component.validate(Component.java:1917)
	at org.apache.pivot.wtk.Component.setVisible(Component.java:1547)
	at org.apache.pivot.wtk.Container.setVisible(Container.java:318)
	at
org.apache.pivot.wtk.skin.terra.TerraTabPaneSkin.selectedIndexChanged(TerraTabPaneSkin.java:1385)
	at
org.apache.pivot.wtk.TabPane$TabPaneSelectionListenerList.selectedIndexChanged(TabPane.java:187)
	at org.apache.pivot.wtk.TabPane.setSelectedIndex(TabPane.java:256)
	at
org.apache.pivot.wtk.skin.terra.TerraTabPaneSkin.tabInserted(TerraTabPaneSkin.java:1272)
	at
org.apache.pivot.wtk.TabPane$TabPaneListenerList.tabInserted(TabPane.java:145)
	at org.apache.pivot.wtk.TabPane$TabSequence.insert(TabPane.java:69)
	at org.apache.pivot.wtk.TabPane$TabSequence.add(TabPane.java:49)
	at org.apache.pivot.wtk.TabPane$TabSequence.add(TabPane.java:42)
	at
org.apache.pivot.wtkx.WTKXSerializer.processEndElement(WTKXSerializer.java:779)
	at org.apache.pivot.wtkx.WTKXSerializer.readObject(WTKXSerializer.java:460)
	at org.apache.pivot.wtkx.WTKXSerializer.readObject(WTKXSerializer.java:411)
	at org.apache.pivot.wtkx.WTKXSerializer.readObject(WTKXSerializer.java:398)
	at org.apache.pivot.wtkx.WTKXSerializer.readObject(WTKXSerializer.java:379)
	at fr.pasteur.HelloWordWTKX.startup(HelloWordWTKX.java:22)
	at
org.apache.pivot.wtk.DesktopApplicationContext$HostFrame.processWindowEvent(DesktopApplicationContext.java:94)
	at java.awt.Window.processEvent(Window.java:1823)
	at java.awt.Component.dispatchEventImpl(Component.java:4630)
	at java.awt.Container.dispatchEventImpl(Container.java:2099)
	at java.awt.Window.dispatchEventImpl(Window.java:2478)
	at java.awt.Component.dispatchEvent(Component.java:4460)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
	at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
	at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

That's the best to have a Form that's horizontal fill on TabPane ?

Best regards

Duto

-- 
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/TabPane-where-Form-horizontal-fill-tp1012260p1012260.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Re: TabPane where Form horizontal fill

Posted by Olivier Dutrieux <ol...@pasteur.fr>.
  thanks Greg

Le 02/08/2010 14:24, Greg Brown a écrit :
> I just added this fix to 1.5.1. FYI, we should be starting the release process very soon.
>
> On Aug 1, 2010, at 6:28 AM, Duto wrote:
>
>> Sorry I don't find before the issue 582 :
>>
>> https://issues.apache.org/jira/browse/PIVOT-582
>>
>> It's a issue on version 1.5 fixed on 2.0.
>> -- 
>> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/TabPane-where-Form-horizontal-fill-tp1012260p1013052.html
>> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

-- 
Olivier Dutrieux
Études et Projets Informatiques (Tél : 31 62)

Re: TabPane where Form horizontal fill

Posted by Greg Brown <gk...@mac.com>.
I just added this fix to 1.5.1. FYI, we should be starting the release process very soon.

On Aug 1, 2010, at 6:28 AM, Duto wrote:

> 
> Sorry I don't find before the issue 582 :
> 
> https://issues.apache.org/jira/browse/PIVOT-582
> 
> It's a issue on version 1.5 fixed on 2.0.
> -- 
> View this message in context: http://apache-pivot-users.399431.n3.nabble.com/TabPane-where-Form-horizontal-fill-tp1012260p1013052.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.


Re: TabPane where Form horizontal fill

Posted by Duto <ol...@pasteur.fr>.
Sorry I don't find before the issue 582 :

https://issues.apache.org/jira/browse/PIVOT-582

It's a issue on version 1.5 fixed on 2.0.
-- 
View this message in context: http://apache-pivot-users.399431.n3.nabble.com/TabPane-where-Form-horizontal-fill-tp1012260p1013052.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.