Forums Register Login

Scrolling and drawing at the same time

+Pie Number of slices to send: Send
Is it possible to draw a line and scroll on the canvas at the same time? Let me highlight my requirement bit more. onTouchEvent I am drawing lines based on the retrieved coordinates. Now what I want is if it exceeds the screen dimension a scroll bar appears and I can draw further. Is it possible to handle two events at the same time scroll and draw?
The human mind is a dangerous plaything. This tiny ad is pretty safe:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 742 times.
Similar Threads
Issue regarding Glass Pane
jpane with scrollpane is not displaying
creating Image
drawing on a JPanel without erasing the underlying drawings
Animation sequence...
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:25:58.