It does change the sub-menu items (Hide <foo>/Quit <foo>), at least the 8u20 
toolchain does.  I would expect the 8u5 toolchain to change it too because it 
looks the same, but I haven’t worked on those builds recently.


On Jun 11, 2014, at 8:05 AM, Tony Anecito <adanec...@yahoo.com> wrote:

> I will try your suggestion to see if the sub-menu items name changes with 
> what you sugggested.
>  
> Thanks,
> -Tony 
> 
> 
> On , Tony Anecito <adanec...@yahoo.com> wrote:
> 
> 
>  Hi,
>  
> The name attribute affects the main menu item but not the sub-menu items. Not 
> sure if you understood what I meant by sub-menu items. It would be better if 
> the sub-menu items did not use the starting/launcher class name. I even found 
> examples googleing where java main.startupclassname was shown for sub-menu 
> items.
>  
> Apple iTunes store will reject java apps becuase of this issue. They want the 
> app name to match everywhere on the app including the sub-menu item names.
>  
> Thanks,
> -Tony
> 
> 
> On Wednesday, June 11, 2014 7:50 AM, Danno Ferrin <danno.fer...@oracle.com> 
> wrote:
> 
> 
> This will be upgraded in the 8u20 release.
> 
> For pre8u20 in the ant script the menu bar name is the name attribute from 
> the application element.
> 
> <fx:deploy … >
>   <!-- … -->
>   <fx:application id=“com.example.your.mac.App” name=“Your App”/>
>   <!-- … -->
> </fx:deploy>
> 
> (This will still work in 8u20, if it doesn’t it is a bug to me I will fix).
> 
> The down side is that some of those value have double use when using multiple 
> platforms.  For example the id attribute is also the UUID for MSI bundles.  
> The name is also the name of the launcher file too, and pre 8u20 they are 
> tied together (unless you do a drop in resource to manually fix the 
> identifier).
> 
> Starting with 8u20 you can specify bundle params, and I have done my best to 
> eliminate the overlapping values, or at least allow you to set specific 
> values that will fall back to overlapping values.
> 
> <fx:deploy … >
>   <!-- … -->
>   <fx:bundleArgument arg=“mac.CFBundleIdentifier” 
> value=“com.example.your.mac.App”/>
>   <fx:bundleArgument arg=“mac.CFBundleName” value=“Your App”/>
>   <!-- … -->
> </fx:deploy>
> 
> Since the windows bundlers don’t understand those arguments they will ignore 
> them.  And the bundle name can be different from the launcher name now as 
> well.
> 
> On Jun 11, 2014, at 4:16 AM, Anthony Petrov <anthony.pet...@oracle.com> wrote:
> 
> > Hi Tony,
> > 
> > I don't know the exact syntax for the FX deploy script (is it the -title or 
> > -name option for the javafxpackager [1] ?), however [2] suggests that the 
> > CFBundleName key in Info.plist can be used to set the application name. I 
> > can confirm that Glass reads the value and assigns it to the application 
> > name. The Quit menu item then uses this name for its text label.
> > 
> > Does setting the CFBundleName work for you?
> > 
> > [1] http://docs.oracle.com/javafx/2/deployment/javafxpackager.htm
> > 
> > [2] https://javafx-jira.kenai.com/browse/RT-18563
> > 
> > --
> > best regards,
> > Anthony
> > 
> > On 6/11/2014 7:54 AM, Tony Anecito wrote:
> >> Hi All,
> >> 
> >> I noticed the menu bar for OS X is probably using my class name that has 
> >> the static main in it. How do I override that in the JavFX Deploy ant 
> >> script? The About, Hide and Quit sub-menu items are using a different name 
> >> than what I want. The main menu item is correct.
> >> 
> >> Thanks!
> >> Tony
> >> 
> 
> 
> 
> 

Reply via email to