Hi, I have custom painting in a layer of JLayeredPane invloving about ~5000 lines. When the cursor moves over JLayeredPane, I have to display a small rectangle ( about 30 * 30 pixels ) around the cursor. The performance bottleneck is that with the mouseMoved event, ~5000 lines get repainted. To overcome this, I created a JPanel in the DRAG layer of JLayeredPane with the custom painting for the small rectangle. But when I invoke repaint() of the JPanel in the DRAG layer , Swing calls custom painting for ~5000 line too. Is there any way of displaying a rectangle around cursor WITHOUT repainting ~5000 lines ? Thanks. ganesan _______________________________________________ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing
