How to create a sub menu

  • btost6
Posted: Thu, 07/29/2010 - 07:07

How would I add a sub menu to this basic menu..??

RibbonApplicationMenuEntryPrimary gen_kml_entry = new
RibbonApplicationMenuEntryPrimary(
SvgBatikResizableIcon.getSvgIcon(getClass().getClassLoader().getResource("images/earth.svg"),
new Dimension(32, 32)),
"Generate KML Tracks",
new ActionListener()
{
@Override
public void actionPerformed (ActionEvent e)
{
SaViewer.this.kml();
}
},
CommandButtonKind.ACTION_ONLY);

gen_kml_entry.setPopupKeyTip("Click to start capturing GPS track.");
gen_kml_entry.setActionKeyTip("T");
applicationMenu.addMenuEntry(gen_kml_entry);

Thanks in Advance..!!

Brian

Not sure I understand the

  • maxkatz
  • 02/17/10
  • Thu, 07/29/2010 - 07:50

Not sure I understand the question.. if you refer to Flamingo Swing components than this is not the right forum.