Java - Implement multiple level context menus