Return-Path: Delivered-To: apmail-pivot-user-archive@www.apache.org Received: (qmail 61962 invoked from network); 3 Mar 2011 15:19:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Mar 2011 15:19:56 -0000 Received: (qmail 76788 invoked by uid 500); 3 Mar 2011 15:19:56 -0000 Delivered-To: apmail-pivot-user-archive@pivot.apache.org Received: (qmail 76768 invoked by uid 500); 3 Mar 2011 15:19:56 -0000 Mailing-List: contact user-help@pivot.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@pivot.apache.org Delivered-To: mailing list user@pivot.apache.org Received: (qmail 76759 invoked by uid 99); 3 Mar 2011 15:19:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Mar 2011 15:19:56 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of dziltener@gmail.com designates 209.85.214.182 as permitted sender) Received: from [209.85.214.182] (HELO mail-iw0-f182.google.com) (209.85.214.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Mar 2011 15:19:48 +0000 Received: by iwn33 with SMTP id 33so1184627iwn.13 for ; Thu, 03 Mar 2011 07:19:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=lIo4kYdEOmjtzgmXBKVJjGSsffxbV++vjQxq3awc3Os=; b=mHs0Pd1x/RZDlw0VrtwQ7D8UFElzOKhsLWp6SZaNT9o0/hy9P+pf1QSlQNh9UAcH1a X4cz/ac7WguErh+QHCmY1YJFHsuAS5e0ZeV8SjTAhD5BXwA5BNwq7N4KzYKGcaDAv863 +xEhotkrEzAnkuaWdWJF+TU24Oq3gJrpWy9e0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; b=l2cCr1QGjNMPBUlPuZGmgS3tvbJcUnVVcLdLcA9EqH5+zZ7mIk5U5m4EseU91zbJiu HtTVsw0+Frf1ASemerg8LEELqrgc+oXNFrDCUxVlf2PgYb0aJIsEvuWJZhjuKjzk3GgU Xw45fUo+A16rWenpK7GXkmhgZhY1zaDOlo97c= Received: by 10.42.166.138 with SMTP id o10mr1697781icy.279.1299165567123; Thu, 03 Mar 2011 07:19:27 -0800 (PST) MIME-Version: 1.0 Sender: dziltener@gmail.com Received: by 10.231.51.8 with HTTP; Thu, 3 Mar 2011 07:19:07 -0800 (PST) From: Daniel Ziltener Date: Thu, 3 Mar 2011 16:19:07 +0100 X-Google-Sender-Auth: Bdhi0lG0BC8S4c6n9PEHbG76Dbo Message-ID: Subject: Problems with MenuBar To: user@pivot.apache.org Content-Type: multipart/alternative; boundary=90e6ba6e8efc21ff72049d958ef9 X-Virus-Checked: Checked by ClamAV on apache.org --90e6ba6e8efc21ff72049d958ef9 Content-Type: text/plain; charset=ISO-8859-1 Hi all, It's me again... I'm trying to add a MenuBar to a window I created. So I have a class MainWindow and a corresponding MainWindow.bxml. The MainWindow extends Frame and implements Application and Bindable and is essentially built like the "Menu Bars" sample on the pivot page, except that I manually add the MenuBar: I have a "@BXML MenuBar menuBar = null" which gets injected and then I use "this.setMenuBar(menuBar)" in the initialize-Method to add the MenuBar to the window. The problem is: There is no menubar displayed. I just keep getting a window without a menubar. My BXML-File is quite short, so I include it: What's wrong with that? --90e6ba6e8efc21ff72049d958ef9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi all,
It's me again... I'm trying to add a Men= uBar to a window I created. So I have a class MainWindow and a correspondin= g MainWindow.bxml.
The MainWindow extends Frame and implements Ap= plication and Bindable and is essentially built like the "Menu Bars&qu= ot; sample on the pivot page, except that I manually add the MenuBar:
I have a "@BXML MenuBar menuBar =3D null" which gets injecte= d and then I use "this.setMenuBar(menuBar)" in the initialize-Met= hod to add the MenuBar to the window. The problem is: There is no menubar d= isplayed. I just keep getting a window without a menubar.
My BXML-File is quite short, so I include it:

<?xml version=3D"1.0" encoding=3D"UTF-8"?>
&l= t;Window title=3D"SemanticNotes" maximized=3D"true" xml= ns:bxml=3D"http://pivot.apach= e.org/bxml" xmlns=3D"org.apache.pivot.wtk">
=A0 =A0 =A0 <MenuBar xmlns:content=3D"org.apache.pivot.wtk.co= ntent" bxml:id=3D"menuBar">
=A0 =A0 =A0 =A0 <= MenuBar.Item buttonData=3D"Testmenu">
=A0 =A0 =A0= =A0 =A0 <Menu.Section>
=A0 =A0 =A0 =A0 =A0 =A0 <Menu.Item>
=A0 = =A0 =A0 =A0 =A0 =A0=A0 <buttonData>
=A0 = =A0 =A0 =A0 =A0 =A0 =A0=A0 <content:MenuItemData text=3D"New"= ; keyboardShortcut=3D"CMD-N"/>
=A0 =A0 =A0 =A0 =A0 =A0 =A0</buttonData>
=A0 = =A0 =A0 =A0 =A0=A0 </Menu.Item>
=A0 =A0 =A0 = =A0 =A0</Menu.Section>
=A0 =A0 =A0 </MenuBar.Item>
= =A0 =A0 </MenuBar>

=A0 =A0 <Panel>
=A0 =A0 =A0 <bxml:include src=3D"BookPanel.bxml" />=A0 =A0 </Panel>
</Window>

= What's wrong with that?
--90e6ba6e8efc21ff72049d958ef9--