A JMenu
can contain JMenuItem
& JMenu
instances. You might have it so that the main menu contains menus for countries. Each country menu has menus for states, then each state has menu items for city.
OTOH a nicer user experience would be provided by 3 JComboBox
instances. The first is for the country, the 2nd and third are populated as needed (on demand).