repaint();
}
+ boolean first=true;
public void setPoints(Vector points, int npoint)
{
this.points = points;
this.npoint = npoint;
+ if (first) {
ToolTipManager.sharedInstance().registerComponent(this);
ToolTipManager.sharedInstance().setInitialDelay(0);
ToolTipManager.sharedInstance().setDismissDelay(10000);
-
+ }
prefsize = getPreferredSize();
orig = new float[npoint][3];
findWidth();
scale = findScale();
-
+ if (first) {
+
addMouseListener(this);
addMouseMotionListener(this);
-
+ }
+ first=false;
}
public void initAxes()