You need to check out the contents of the GUI and how you are laying it out and where you want what to be shown. Where is the Canvas class used? (rename it to MyCanvas)
Type: Posts; User: Norm
You need to check out the contents of the GUI and how you are laying it out and where you want what to be shown. Where is the Canvas class used? (rename it to MyCanvas)
Is a token an image? Have you tried using the drawImage() method in paintComponent()?
Where do you create an instance of your Canvas class?
BTW Canvas is the name of a Java SE class. Pick...
Listen for what?
Have you looked at the tutorial for mouse listeners?
How to Write a Mouse Listener (The Java™ Tutorials > Creating a GUI With JFC/Swing > Writing Event Listeners)
What do you...
What is supposed to happen? I get the applet and I get a frame with an image in the center. Then what?
Have you looked at the tutorial for mouse listeners?...
Please Edit your post and wrap your code with
<YOUR CODE HERE> to get highlighting. The unformatted code is hard to read and work with.