I am developing a Java ME application using Canvas. The details displayed on the Canvas are plentiful, so I need to scroll down the screen to view the further details.
But how can I add a vertical scrollbar on a Canvas?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think that the scrollbar should be drawn inside the
paintmethod. And you implement thekeyReleasedmethod when clicking the arrow of the scrollbar. To implement thescrollingI would prefer callrepaint();and I will manage thepaintmethod withbooleanor some other type of privatevariable.