Thank you, it worked, this is what I did, in case someone is
interested:
buttonright_arrow.addMouseListener(new MouseListener()
{
boolean flag = false;
private Timer timer = new Timer()
{
public void run()
{
flag = true;
}
};
private Timer t = new Timer()
{
public void run()
{
if (flag)
scrollToRight();
}
};
public void onMouseDown(Widget sender, int x, int y)
{
timer.schedule(1000);
t.scheduleRepeating(100);
}
public void onMouseEnter(Widget sender)
{
}
public void onMouseLeave(Widget sender)
{
flag = false;
timer.cancel();
t.cancel();
}
public void onMouseMove(Widget sender, int x, int y)
{
}
public void onMouseUp(Widget sender, int x, int y)
{
flag = false;
timer.cancel();
t.cancel();
}
});
Thanks again
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---