You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by V SANTOSH PAVAN RAJU Bs <pa...@gmail.com> on 2012/03/21 12:23:12 UTC

Problem with ListButton

I wrote a sample application to test ListButton as:

<?xml version="1.0" encoding="UTF-8"?>
<Window title="SAMPLE.........." maximized="true"
xmlns:bxml="http://pivot.apache.org/bxml"
xmlns:lists="org.apache.pivot.tutorials.lists"
xmlns:effects="org.apache.pivot.wtk.effects"
xmlns:content="org.apache.pivot.wtk.content"
xmlns="org.apache.pivot.wtk">

<TablePane styles="{padding:40}">
<columns>
<TablePane.Column width="1*" />
</columns>

<TablePane.Row height="30">
<BoxPane>
<Label text="name:" />
<TextInput textSize="10" />
</BoxPane>
</TablePane.Row>

<TablePane.Row height="50">
<BoxPane>
<Label text="Select:" />
<ListButton listData="['1','2','3','4']" />
</BoxPane>
</TablePane.Row>

</TablePane>
</Window>

When i run this code and tried to click ListButton, the following error
message was displayed.

Exception in thread "AWT-EventQueue-0" java.lang.AbstractMethodError
at
org.apache.pivot.wtk.Window$WindowStateListenerList.previewWindowOpen(Window.java:376)
at org.apache.pivot.wtk.Window.open(Window.java:654)
at org.apache.pivot.wtk.Window.open(Window.java:615)
at
org.apache.pivot.wtk.skin.ListButtonSkin.mouseDown(ListButtonSkin.java:268)
at
org.apache.pivot.wtk.Component$ComponentMouseButtonListenerList.mouseDown(Component.java:481)
at org.apache.pivot.wtk.Component.mouseDown(Component.java:2789)
at org.apache.pivot.wtk.Container.mouseDown(Container.java:731)
at org.apache.pivot.wtk.Container.mouseDown(Container.java:731)
at org.apache.pivot.wtk.Container.mouseDown(Container.java:731)
at org.apache.pivot.wtk.Container.mouseDown(Container.java:731)
at
org.apache.pivot.wtk.ApplicationContext$DisplayHost.processMouseEvent(ApplicationContext.java:883)

I run this code with new Pivot Source Distribution.

Please help me in this regard.
-- 
Thanks & Regards
B.S.V.S.Pavan Raju.
Skype: skype_pavan1
Hyderabad.

Re: Problem with ListButton

Posted by Noel Grandin <no...@gmail.com>.
The problem is in your code, not in the BXML file.

On Wed, Mar 21, 2012 at 13:23, V SANTOSH PAVAN RAJU Bs
<pa...@gmail.com> wrote:
> I wrote a sample application to test ListButton as:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <Window title="SAMPLE.........." maximized="true"
> xmlns:bxml="http://pivot.apache.org/bxml"
> xmlns:lists="org.apache.pivot.tutorials.lists"
> xmlns:effects="org.apache.pivot.wtk.effects"
> xmlns:content="org.apache.pivot.wtk.content"
> xmlns="org.apache.pivot.wtk">
>
> <TablePane styles="{padding:40}">
> <columns>
> <TablePane.Column width="1*" />
> </columns>
>
> <TablePane.Row height="30">
> <BoxPane>
> <Label text="name:" />
> <TextInput textSize="10" />
> </BoxPane>
> </TablePane.Row>
>
> <TablePane.Row height="50">
> <BoxPane>
> <Label text="Select:" />
> <ListButton listData="['1','2','3','4']" />
> </BoxPane>
> </TablePane.Row>
>
> </TablePane>
> </Window>
>
> When i run this code and tried to click ListButton, the following error
> message was displayed.
>
> Exception in thread "AWT-EventQueue-0" java.lang.AbstractMethodError
> at
> org.apache.pivot.wtk.Window$WindowStateListenerList.previewWindowOpen(Window.java:376)
> at org.apache.pivot.wtk.Window.open(Window.java:654)
> at org.apache.pivot.wtk.Window.open(Window.java:615)
> at
> org.apache.pivot.wtk.skin.ListButtonSkin.mouseDown(ListButtonSkin.java:268)
> at
> org.apache.pivot.wtk.Component$ComponentMouseButtonListenerList.mouseDown(Component.java:481)
> at org.apache.pivot.wtk.Component.mouseDown(Component.java:2789)
> at org.apache.pivot.wtk.Container.mouseDown(Container.java:731)
> at org.apache.pivot.wtk.Container.mouseDown(Container.java:731)
> at org.apache.pivot.wtk.Container.mouseDown(Container.java:731)
> at org.apache.pivot.wtk.Container.mouseDown(Container.java:731)
> at
> org.apache.pivot.wtk.ApplicationContext$DisplayHost.processMouseEvent(ApplicationContext.java:883)
>
> I run this code with new Pivot Source Distribution.
>
> Please help me in this regard.
> --
> Thanks & Regards
> B.S.V.S.Pavan Raju.
> Skype: skype_pavan1
> Hyderabad.
>