Your code contains several syntax errors that fundamentally break your code. You should fix them first. Then follow the tutorials you were given, adding small pieces to your program and testing them...
Type: Posts; User: KevinWorkman
Your code contains several syntax errors that fundamentally break your code. You should fix them first. Then follow the tutorials you were given, adding small pieces to your program and testing them...
You've been provided several links and pieces of advice- what happened when you tried them? Where is your updated SSCCE? What exactly are you confused by?
I've merged your two threads, since they are asking for the same information. Again, you're going to have to read the link I gave you and ask specific questions about anything that confuses you.
That isn't really how this works. This isn't a codemill or a homework service. You're going to have to do some research, post your findings, and ask specific questions.
I've posted a link to a great tutorial containing everything you need to know.
Please don't waste time insulting your instructor- many people here have taught themselves without the aid of an...
Recommended reading: How to Write a Mouse Listener (The Java™ Tutorials > Creating a GUI With JFC/Swing > Writing Event Listeners)