Forums Register Login

Horizantal image scroll in J2ME form

+Pie Number of slices to send: Send
Hi Friends,

I have been trying to figure out if J2ME javax.microedition.lcdui.Form allows for horizontal scrolling.

When form items are added to this form, and they exceed the form area, the vertical scrollbar appears automatically. This is not the case however when an ImageItem wider than the form is placed onto it. That is, if say the form on a Nokia mobile with a screen of 125x100 takes precisely those dimensions, and an ImageItem of 200x200 is placed on it. Vertical scrolling appears automatically, but not the horizontal.

I tried with resizing the image using the code snippet attached in this url.

Image zooming.

However the reduced size of the image makes it very hazy and unusuable thu si had to discard this option.
Now I desperately need to find a way to get the horizantal scroll work.

I know it can be done using Canvas class , but then my entire code will also change so please help me out with its implementation in a Form.

Thanks,
+Pie Number of slices to send: Send
This link might help
http://www.experts-exchange.com/Programming/Languages/Java/Q_20840864.html
(You must register to view the code. I could paste it here if you have problem with login)
+Pie Number of slices to send: Send
Hi Aleksandar,

I tried the link below but as you mentioned I could not log in ti view the solution.

It would be very helpful if you would paste the code out here.

Thanks in advance..
+Pie Number of slices to send: Send
Here it is!

+Pie Number of slices to send: Send
Thanks Aleksandar Babic.
It is working just the way I wanted it.
+Pie Number of slices to send: Send
Great! You're welcome
Where does a nanny get ground to air missles? Protect this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2998 times.
Similar Threads
How can i add Horizantal scrollbar in jsf
Problem with Jtable Horizantal Scroll Pane
problem with setting scrollbar value
How to scroll with the mouse horizontally
no scroll bar in IE,but Scroll bar in MF
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 19:59:03.