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

Greg Brown commented on PIVOT-665:
----------------------------------

OK, I understand your confusion now - when we added the Component argument to 
perform() we failed to update the tutorial docs. Sorry about that.

You seem to have already resolved your issue, but just to close the loop - I 
was able to successfully build and run the example from the tutorial docs by 
adding the source argument to all of the perform() methods. So as far as I can 
tell, that appears to be the only issue with the example.

Re: Pivot 2.0 - I would recommend building from source. It is trivial and 
amounts to syncing with SVN and running "ant package" from the command line. 
You can browse the latest 2.0 tutorials here (the final version will be posted 
to pivot.apache.org once 2.0 is released):

http://ixnay.biz/pivot-tutorials/


> 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.

Reply via email to