java - How to show a menu depending on what is selected? -


in swing, how show menu depending on selected menu.

for example: select country drop down. followed state drop down, followed city.

when particular country selected, show states country. also, when state selected, show cities in state.

a jmenu can contain jmenuitem & jmenu instances. might have main menu contains menus countries. each country menu has menus states, each state has menu items city.

otoh nicer user experience provided 3 jcombobox instances. first country, 2nd , third populated needed (on demand).


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -