There are tutorials that can fix that.
Next, the swing timer requires an action listener in its constructor, and I have no clue what it is for or really how to use it.
Again, please explain the behavior that you're trying to have occur here because I'm thinking that there really should be no need to use any type of Timer here.
Last, I thought about using mouse listener alone to do this (and it would probably be much more simpler to do so), but when I try to think of a way to do it nothing really works. Like i think maybe use a boolean that is changed by the clicked and released methods, but if you do that you would need some other method that actually does the moving right? if you did so you wouldn't be able to access the position of the event from there. I'm sorry I am probably being too vague, but if you have an idea for that that you think would work pls tell me.