Community
Participate
Working Groups
If the Tracker's setRectangles method is method is used hold the tracking rectangle still, the rectangle will flicker during mouse movements. This is quite noticable in the Eclipse 3.0 UI. The following snippet demonstrates the bug (run it and move the mouse cursor around to observe the flicker). public class Main { static int counter = 0; public static void main (String [] args) { Display display = new Display (); final Shell shell = new Shell (display); shell.open (); final Tracker tracker = new Tracker (shell, 0); tracker.setRectangles (new Rectangle [] { new Rectangle (100, 100, 400, 400), }); tracker.setStippled(true); tracker.addControlListener(new ControlListener() { public void controlMoved(ControlEvent e) { tracker.setRectangles(new Rectangle[] {new Rectangle(100, 100, 400, 400)}); } public void controlResized(ControlEvent e) { } }); tracker.open (); while (!shell.isDisposed()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); } }
fixed > 0205 on all platforms