I combined mouse events o move my drawn rectangle object. Everything was fine i could move it and when i released the mouse button it stopped moving and settled down. However after rotating that object and then trying to move it around I just could not perform the action again. I have used the ResetTransform method at the end but this didn't help eihter. I have an alternative way for this but i would like to stick with that(above mentioned). Any sugestions what's going on behind the graphic scene and why i m unable to move my rectangle when rotation …

Member Avatar
Member Avatar
+0 forum 7

So i want to hodl my mouse and by moving the mouse i want my vector to rotate around, which of the built in events should i use? i tryed mousedown event but that s not what i m looking for obviously.Maybe i should combine two mouse events instead?

Member Avatar
Member Avatar
+0 forum 2

I try to create with jquery a simple hover-sliding. [Here is my example](http://jsfiddle.net/Aleshanee/BgdMY/12/embedded/result/) My first problem ist the mouseenter is, when a users the duck and while the duck slides up the user is going to mouseenter the cow, the sliding want to show both slides and do ugly stuff (see my expamle - just try it) [Here is my Fiddle](http://jsfiddle.net/Aleshanee/BgdMY/12/) I think there must be a solution, like disable the other mouseenter until the first ended with its sliding. My second trouble is that every time the page was new loaded (F5), the pictures have to load. (The duck …

Member Avatar
Member Avatar
+0 forum 1

Hi! I've got two background pictures, one is blurry, the other one is the same picture, but more colorful. The default background image is the blurry one. When I move the cursor, I'd like to change the background image from the blurry to the colorful one, but only in a circle around the cursor, and when I move the cursor forward, the changed background stays where the circle around the cursor went earlier. (like when you scratch a lottery ticket with a coin) I think I have to handle the MouseMove event, and use the MouseEventArgs cursor position, but I …

Member Avatar
+0 forum 0

I'm having some fundamental issues with some basic abstraction. Here is the super class: [CODE] public abstract class Tile extends JLabel implements MouseListener { public Tile() { setIcon(new ImageIcon(getClass().getResource("images/blank.gif"))); } @Override public void mousePressed(MouseEvent e) { System.out.println("clicked"); switch(e.getModifiers()) { case InputEvent.BUTTON1_MASK: leftClick(); break; case InputEvent.BUTTON2_MASK: rightClick(); break; } } public abstract void leftClick(); public abstract void rightClick(); } [/CODE] sub class: [CODE]public class Mine extends Tile { @Override public void leftClick() { System.out.println("left clicked"); } @Override public void rightClick() { System.out.println("right clicked"); } }[/CODE] When I implement this on a JFrame, the image is visible, but the MouseListener is not …

Member Avatar
Member Avatar
+0 forum 1

The End.