pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Duto <olivier.dutri...@pasteur.fr>
Subject TabPane where Form horizontal fill
Date Sat, 31 Jul 2010 21:40:47 GMT

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.

Mime
View raw message