when i click on Jbutton i want one jpanel to disappear and another to appear

when i click on a button moneyButton, im trying to make it so the timePanel disappears and is replaced by a moneyPanel.
Also before any button is clicked the timePanel is visible. when i click on the timeButton i just made components visible, however i cant do this for the moneyButton hence ive created a new JPanel which i want to make visible. However i cant make this happen.
heres some of my code, msg me if you want to see all of it.