How do you switch from 1frame to the other

This is the problem:
I've got 2 frames (frame1.java and frame2.java) what I want to do is switch between these frames (later on there will be more frames)

So my question is: How do I close the current window, and activate the next one, by clicking a button.

I did found some things with commands like: frame1.show() and frame1.hide()
But these wont work.
All the frames are already programmed, I only need to put the command in the Actionhandler to switch from one to another.

Please help me.

THNX for da Reading