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
Post a Comment