You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by coder java <co...@gmail.com> on 2011/12/16 09:18:39 UTC
menu bar example as desktop
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
Re: menu bar example as desktop
Posted by coder java <co...@gmail.com>.
Hi ,
I got it from source code distribution directory .
Thanks Pavan and Chris
Sony
On Fri, Dec 16, 2011 at 10:36 PM, Chris Bartlett <cb...@gmail.com>wrote:
> 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 <co...@gmail.com> 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
> >
>
Re: menu bar example as desktop
Posted by Chris Bartlett <cb...@gmail.com>.
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 <co...@gmail.com> 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
>
Re: menu bar example as desktop
Posted by pavan vadavalli <pa...@gmail.com>.
Have a look at the below tutorial for Menu Bars along with the code.
http://pivot.apache.org/tutorials/menu-bars.html
The tutorials are the best place to get an introduction of Pivot.
The below tutorial explains how to use the code to be invoked via
DesktopApplicationContext()
http://pivot.apache.org/tutorials/hello-world.html
Thanks and Regards,
Pavan
On Friday, 16 December 2011 7:18:39 PM, coder java 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
>