As Pavan said, the tutorial is online here
http://pivot.apache.org/tutorials/menu-bars.html

You can get the source from the Subversion repo here
http://svn.apache.org/repos/asf/pivot/trunk/tutorials/src/org/apache/pivot/tutorials/menus/

Or download the source distribution here
http://pivot.apache.org/download.cgi#Source%20Code%20Distributions


This code will launch it as a desktop app
<code>
package org.apache.pivot.tutorials.menus;

import org.apache.pivot.wtk.ScriptApplication;

public class MenuBarsLauncher {
    public static void main(String[] args) {
        ScriptApplication.main(new String[]
{"--src=/org/apache/pivot/tutorials/menus/menu_bars.bxml"});
    }
}
</code>

See here for what ScriptApplication does
http://svn.apache.org/repos/asf/pivot/trunk/wtk/src/org/apache/pivot/wtk/ScriptApplication.java



On 16 December 2011 15:18, coder java <[email protected]> wrote:
> Hi I want to test menu bar example as desktop applicaiton how i can do .
> i know this can be done int his way
> public static void main(String[] args) {
>         DesktopApplicationContext.main(Main.class, args);
>     }
>
> but Do i need declare one bxml file for window ?
> if i declare how i can embeddd menu_bars.bxml into window .
> I am very new to this pivot . please help me if any one have some idea
> Regards
> Sony
>

Reply via email to