pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Brown (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIVOT-665) Menu bar tutorial does not work with Pivot 1.5.2
Date Wed, 03 Nov 2010 12:07:25 GMT

    [ https://issues.apache.org/jira/browse/PIVOT-665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12927823#action_12927823

Greg Brown commented on PIVOT-665:

I don't have any problems running the Menu Bars tutorial under Pivot 1.5.2, either from the
web site (http://pivot.apache.org/tutorials/menu-bars.html) or locally as a desktop application.
I see that the stack trace includes the de.schlichtherle.truemirror.gui.Main$2.perform() method,
which is not part of the tutorial - perhaps the error is in that method?

FYI, if you are just starting with Pivot, I would strongly suggest considering using Pivot
2.0. Though it has not been officially released yet, it should be shortly, and it includes
a number of improvements that you may want to take advantage of:


1.5.2 will most likely be the last release of the 1.x branch.

> Menu bar tutorial does not work with Pivot 1.5.2
> ------------------------------------------------
>                 Key: PIVOT-665
>                 URL: https://issues.apache.org/jira/browse/PIVOT-665
>             Project: Pivot
>          Issue Type: Bug
>          Components: wtk
>    Affects Versions: 1.5.2
>         Environment: JDK 1.6.0_22; Windows Vista patched up to date.
>            Reporter: Christian Schlichtherle
> I can't get the tutorial at http://pivot.apache.org/tutorials/menu-bars.html to work
with Pivot 1.5.2. First I needed to add a Component parameter to Action.perform() but now
I am stuck with the following exception:
> java.lang.IllegalArgumentException: Window parent must be null or display.
>         at org.apache.pivot.wtk.Window.setParent(Window.java:400)
>         at org.apache.pivot.wtk.Container.insert(Container.java:151)
>         at org.apache.pivot.wtk.Container.add(Container.java:131)
>         at org.apache.pivot.wtk.Border.setContent(Border.java:113)
>         at org.apache.pivot.wtk.Border.<init>(Border.java:55)
>         at de.schlichtherle.truemirror.gui.Main$2.perform(Main.java:84)
>         at org.apache.pivot.wtk.Button.press(Button.java:367)
>         at org.apache.pivot.wtk.Menu$Item.press(Menu.java:214)
>         at org.apache.pivot.wtk.skin.MenuItemSkin.mouseUp(MenuItemSkin.java:142)
>         at org.apache.pivot.wtk.Component$ComponentMouseButtonListenerList.mouseUp(Component.java:462)
>         at org.apache.pivot.wtk.Component.mouseUp(Component.java:2610)
>         at org.apache.pivot.wtk.Container.mouseUp(Container.java:742)
>         at org.apache.pivot.wtk.Container.mouseUp(Container.java:742)
>         at org.apache.pivot.wtk.Container.mouseUp(Container.java:742)
>         at org.apache.pivot.wtk.Container.mouseUp(Container.java:742)
>         at org.apache.pivot.wtk.Container.mouseUp(Container.java:742)
>         at org.apache.pivot.wtk.ApplicationContext$DisplayHost.processMouseEvent(ApplicationContext.java:874)
>         at java.awt.Component.processEvent(Component.java:6032)
>         at org.apache.pivot.wtk.ApplicationContext$DisplayHost.processEvent(ApplicationContext.java:655)
>         at java.awt.Component.dispatchEventImpl(Component.java:4630)
>         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)
> I appears that new Border(Container container) tries to set the container as it's own
parent which makes no sense to me.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message