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?
Asked
Active
Viewed 579 times
1 Answers
1
To do this, you have to do following steps.
- Set scrollable property of form to false.
- Set scrollableY property of container to true.
- Set the layout of form to BorderLayout.
- Add the container to form at BorderLayout.CENTER.

Kalai Selvan Ravi
- 2,846
- 2
- 16
- 28
-
I want to put an ad below the container , how to do that, if i changed the height of the container or the text area the container won't scroll – Reham Aug 24 '12 at 18:44