Click here to Skip to main content
15,885,244 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi i'm working on a j2me project and i need to make 4 textbox next to each other.
like this: [.......][.....][......][.....]
but j2me textbox and textfield every one fill a line and become like this:
[........]
[.....]
[......]
[.....]
as i searched for i understood the Textbox has no set location method but isn't there any way to make them just next to each other?
Regards...
Posted
Comments
Afzaal Ahmad Zeeshan 2-Aug-15 15:15pm    
Work around with their margins.
i.fakhari 2-Aug-15 15:33pm    
can you explain more?!
how can we change their margins?!
Richard MacCutchan 3-Aug-15 2:57am    
Objects like this generally have properties of location and size. Take a closer look and see how you can adjust them so they show in the right places. Or it may be that you need to look at the properties of the container where the textboxes are placed.
i.fakhari 3-Aug-15 14:24pm    
as i searched j2me doesn't support this option clearly:
http://stackoverflow.com/questions/7911477/how-to-set-caret-position-in-textfield-in-j2me
Richard MacCutchan 4-Aug-15 2:28am    
That has nothing to do with your question. You need to study the section on layouts in http://docs.oracle.com/javame/config/cldc/ref-impl/midp2.0/jsr118/javax/microedition/lcdui/Form.html.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900