This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
hi all, I'm quite new using j2me in palm. Does anyone of you has idea, how to adjust the position of the StringItem in palm screen? i'm understand that the StringItem's title will be on left justified and text will be on right, but i want it full control on it. i need to control the full screen on palm. Thanks in advance. sato
If you can't change the direction the the wind, change your sail.
Hello, I am supposing that you wish to center the StringItem on the screen ? Maybe you should calculate the width of the String Font font = Fong.getDefault(); // or your font it str_w = font.stringWidth( yourStringItem.getLabel() ); // or getText ot both so with this info in mind you can add additional space before and after to adjust the position. If you are dealing with a Form you can add directly the String - that gives you more freedom to operate it. Hope this helps,