I need a way to get the position of a JFrame, move it a certain direction and then back a few times to create a "shaking" affect. I have no idea on how to do this, and I would greatly appreciate it if someone explained how this could be achieved. - Hatem
Welcome to JavaRanch! Do you mean something annoying like this:Take a good look at the JFrame class documentation for the methods available to JFrames.
Just some advice: make sure this "buzz" feature turns off rather quickly. Items that vibrate on the screen are extremely distracting and most people find it hard to concentrate when this type of thing is going on. Have you ever seen those banner ads that vibrate? I always scroll the article I'm trying to read down just enough to hide them...