To continue developing my JavaFX skills I put in a few hours over the last week to build a menubar control. For those unsure on what a menubar is, it is the row at the top of an applications window (on most operating systems) that has the 'File', 'Edit', 'Help', etc menus. The menubar control is therefore responsible for making it easy to add and remove menus and menu items from the menu. For anyone interested in the API for my menubar, you can read the code that must be written to build the menu shown below.
I'm not wanting to go on about it too much now, as it is still in very early development, but you can play with it here. You'll need to be running a recent Java release to get the best results. Of course, don't expect much - what you see in the screenshot below is all you get (along with a bit of interactivity). Click the screenshot for a bigger image.
I'm also aware that it is lacking :-) Features such as accelerators, mnemonics, grouped menu items, submenu arrows, checks on checked menu items are all coming (some faster than others). As well as this, there are some layout issues that I need to work out - in particular menu width improvements, submenu positioning (overlap), text alignment, etc. Update: Note that the crossed-out tasks have been completed.
For now it's a tech demo (for me) - hopefully as time permits it may find time to become more polished, and possibly even usable!