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' -

Making Empty C++ Project: General exception (Exception from HRESULT:0x80131500) Visual Studio Community 2015 -

How to fix java warning for "The value of the local variable is not used " -