pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noel Grandin <noelgran...@gmail.com>
Subject Re: Problem with ListButton
Date Wed, 21 Mar 2012 15:21:25 GMT
The problem is in your code, not in the BXML file.

On Wed, Mar 21, 2012 at 13:23, V SANTOSH PAVAN RAJU Bs
<pavanraju.mca@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.
>

Mime
View raw message