Please refer to a basic Swing tutorial, like this one. There's also this index to choose from when you're ready to move to the next topic.