I have created a sample application where I want to do scrolling, but I am not able to achieve the desired output.
I have tried the following code inside paint method >>>>>
g.translate(x,y);
and passing the value for variable 'y' in keydown and keyup event.
Can anyone help me out to do this?