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

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -