Reham
Reham

Reputation: 1986

Scrolling image and text area within a container in Lwuit J2ME

I want to put an image with a text area (Y-axis) in a box layout container ,if the user presses the down button to scroll down, i want the container to scroll as a one object, so the image goes up while scrolling and the user scroll the rest of the text area content. I know how to add the image and the text area to the container but i don't know how to do the rest. Any help?

Upvotes: 0

Views: 582

Answers (1)

Kalai Selvan Ravi
Kalai Selvan Ravi

Reputation: 2886

To do this, you have to do following steps.

  1. Set scrollable property of form to false.
  2. Set scrollableY property of container to true.
  3. Set the layout of form to BorderLayout.
  4. Add the container to form at BorderLayout.CENTER.

Upvotes: 1

Related Questions