pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luiz Gustavo <luizgustav...@gmail.com>
Subject Re: Calendar problem
Date Mon, 07 Feb 2011 01:47:41 GMT
Very strange. When the country is US or CA, in kitchen sink, calendar is ok.
Even spanish with US is fine, but spanish with ES country it gets wrong days
sequences. Seems related to the country in locale, maybe.


2011/2/6 Greg Brown <gk_brown@verizon.net>

> Looks like a valid bug. I was just able to reproduce it in the Kitchen Sink
> demo using the French localized calendar.
>
> On Feb 6, 2011, at 5:09 PM, Luiz Gustavo wrote:
>
> Hi,
>
> I'm getting a very strange beravior with Calendar component. When I try to
> select some days in may, calendar automatically changes to april, and when I
> select 1st May 2011 I get this error:
>
>
> java.lang.IndexOutOfBoundsException: index -1 out of bounds.
>     at
> org.apache.pivot.collections.ArrayList.verifyIndexBounds(ArrayList.java:577)
>     at org.apache.pivot.collections.ArrayList.get(ArrayList.java:346)
>     at org.apache.pivot.wtk.TablePane$Row.get(TablePane.java:263)
>     at
> org.apache.pivot.wtk.skin.terra.TerraCalendarSkin.updateSelection(TerraCalendarSkin.java:706)
>     at
> org.apache.pivot.wtk.skin.terra.TerraCalendarSkin.selectedDateChanged(TerraCalendarSkin.java:963)
>     at
> org.apache.pivot.wtk.Calendar$CalendarSelectionListenerList.selectedDateChanged(Calendar.java:90)
>     at org.apache.pivot.wtk.Calendar.setSelectedDate(Calendar.java:212)
>     at
> org.apache.pivot.wtk.skin.terra.TerraCalendarSkin$4.selectionChanged(TerraCalendarSkin.java:506)
>     at
> org.apache.pivot.wtk.ButtonGroup$ButtonGroupListenerList.selectionChanged(ButtonGroup.java:46)
>     at org.apache.pivot.wtk.ButtonGroup.setSelection(ButtonGroup.java:128)
>     at org.apache.pivot.wtk.Button.setState(Button.java:469)
>     at org.apache.pivot.wtk.Button.setSelected(Button.java:432)
>     at
> org.apache.pivot.wtk.skin.terra.TerraCalendarSkin$DateButton.press(TerraCalendarSkin.java:77)
>     at
> org.apache.pivot.wtk.skin.terra.TerraCalendarSkin$DateButtonSkin.mouseClick(TerraCalendarSkin.java:219)
>     at
> org.apache.pivot.wtk.Component$ComponentMouseButtonListenerList.mouseClick(Component.java:483)
>     at org.apache.pivot.wtk.Component.mouseClick(Component.java:2777)
>     at org.apache.pivot.wtk.Container.mouseUp(Container.java:774)
>     at org.apache.pivot.wtk.Container.mouseUp(Container.java:759)
>     at org.apache.pivot.wtk.Container.mouseUp(Container.java:759)
>     at org.apache.pivot.wtk.Container.mouseUp(Container.java:759)
>     at org.apache.pivot.wtk.Container.mouseUp(Container.java:759)
>     at
> org.apache.pivot.wtk.ApplicationContext$DisplayHost.processMouseEvent(ApplicationContext.java:914)
>     at java.awt.Component.processEvent(Unknown Source)
>     at
> org.apache.pivot.wtk.ApplicationContext$DisplayHost.processEvent(ApplicationContext.java:709)
>     at java.awt.Component.dispatchEventImpl(Unknown Source)
>     at java.awt.Component.dispatchEvent(Unknown Source)
>     at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
>     at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
>     at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>     at java.awt.Container.dispatchEventImpl(Unknown Source)
>     at java.awt.Window.dispatchEventImpl(Unknown Source)
>     at java.awt.Component.dispatchEvent(Unknown Source)
>     at java.awt.EventQueue.dispatchEvent(Unknown Source)
>     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     at java.awt.EventDispatchThread.run(Unknown Source)
> java.lang.IndexOutOfBoundsException: index -1 out of bounds.
>     at
> org.apache.pivot.collections.ArrayList.verifyIndexBounds(ArrayList.java:577)
>     at org.apache.pivot.collections.ArrayList.get(ArrayList.java:346)
>     at org.apache.pivot.wtk.TablePane$Row.get(TablePane.java:263)
>     at
> org.apache.pivot.wtk.skin.terra.TerraCalendarSkin.updateSelection(TerraCalendarSkin.java:706)
>     at
> org.apache.pivot.wtk.skin.terra.TerraCalendarSkin.selectedDateChanged(TerraCalendarSkin.java:963)
>     at
> org.apache.pivot.wtk.Calendar$CalendarSelectionListenerList.selectedDateChanged(Calendar.java:90)
>     at org.apache.pivot.wtk.Calendar.setSelectedDate(Calendar.java:212)
>     at
> org.apache.pivot.wtk.skin.terra.TerraCalendarSkin$4.selectionChanged(TerraCalendarSkin.java:506)
>     at
> org.apache.pivot.wtk.ButtonGroup$ButtonGroupListenerList.selectionChanged(ButtonGroup.java:46)
>     at org.apache.pivot.wtk.ButtonGroup.setSelection(ButtonGroup.java:128)
>     at org.apache.pivot.wtk.Button.setState(Button.java:469)
>     at org.apache.pivot.wtk.Button.setSelected(Button.java:432)
>     at
> org.apache.pivot.wtk.skin.terra.TerraCalendarSkin$DateButton.press(TerraCalendarSkin.java:77)
>     at
> org.apache.pivot.wtk.skin.terra.TerraCalendarSkin$DateButtonSkin.mouseClick(TerraCalendarSkin.java:219)
>     at
> org.apache.pivot.wtk.Component$ComponentMouseButtonListenerList.mouseClick(Component.java:483)
>     at org.apache.pivot.wtk.Component.mouseClick(Component.java:2777)
>     at org.apache.pivot.wtk.Container.mouseUp(Container.java:774)
>     at org.apache.pivot.wtk.Container.mouseUp(Container.java:759)
>     at org.apache.pivot.wtk.Container.mouseUp(Container.java:759)
>     at org.apache.pivot.wtk.Container.mouseUp(Container.java:759)
>     at org.apache.pivot.wtk.Container.mouseUp(Container.java:759)
>     at
> org.apache.pivot.wtk.ApplicationContext$DisplayHost.processMouseEvent(ApplicationContext.java:914)
>     at java.awt.Component.processEvent(Unknown Source)
>     at
> org.apache.pivot.wtk.ApplicationContext$DisplayHost.processEvent(ApplicationContext.java:709)
>     at java.awt.Component.dispatchEventImpl(Unknown Source)
>     at java.awt.Component.dispatchEvent(Unknown Source)
>     at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
>     at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
>     at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
>     at java.awt.Container.dispatchEventImpl(Unknown Source)
>     at java.awt.Window.dispatchEventImpl(Unknown Source)
>     at java.awt.Component.dispatchEvent(Unknown Source)
>     at java.awt.EventQueue.dispatchEvent(Unknown Source)
>     at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
>     at java.awt.EventDispatchThread.run(Unknown Source)
>
>
> What could it be?
>
> Luiz Gustavo S. de Souza
>
> http://luizgustavoss.wordpress.com
>
>
>
>


-- 
Luiz Gustavo S. de Souza

http://luizgustavoss.wordpress.com

Mime
View raw message