I'm making a pretty easy unit converter with Google Window Builder. Now I am quite a noob at Java and I am having a problem. I have a menu bar, and a JMenu item titled "Chemistry" under there is 2 items, this is not important but one is called "Temperature" and the other one "n = m/M". Now when you click on one of those it's supposed to switch to the panel (it's called i believe) for that specific set of units...So clicking on "temperature" would take me to a panel with conversion of like celsius and fahrenheit bla bla.

So first I made a layeredPanel and put JPanels under them, one for "temperature" and one for "n = m/M". Now how do I get them to show if i click on the corresponding menu item?! Hope this wasn't a too long post. Help please! Ty!