Right now I have:
panel.getZoomButton().addActionListener(new ActionListener()
{
@Override
public void actionPerformed(ACtionEvent e)
{
zoom();
}
}
This is called every time the zoom button is pressed. How can I change it so that zoom()
will be continuously called if the zoom button is being held down?