Give it a try yourself before asking for help. Search in the JavaDocs. Google it. Here's a starting point. Now, learn to code instead of copy/pasting other's code.