Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2005

Tip: Looking for answers? Try searching our database.

J2ME : place components

Thread view: 
Arnaud - 11 Jun 2005 16:35 GMT
Hello,

I've tried to develop with J2ME today.
I'm come from SuperWaba world....

I've tried some example provided with the Sun SDK and I try one devlopment.

I know how to add graphical component (button, String Item, list...) but
 I don't find how to set thier position where I would like !
Ex. : Command are always at the bottom
StringItem is at the right top ...

Does it exist a method to set the position of a graphical component?

Regards

Arnaud
Darryl Pierce - 12 Jun 2005 01:22 GMT
> Hello,
>
[quoted text clipped - 7 lines]
> Ex. : Command are always at the bottom
> StringItem is at the right top ...

You can't control where Commands are displayed, it's a platform
dependant thing; i.e., one some handsets it's displayed as a dropdown
menu (RIM Blackberry), or it's displayed with a softkey on the side
appropriate for the handset itself.

For components, there's some layout management available with MIDP 2.0,
but it's only a *suggestion* for layouts.

Signature

Darryl L. Pierce <mcpierce@gmail.com>
Visit my homepage: http://mcpierce.multiply.com
"By doubting we come to inquiry, through inquiry truth." - Peter Abelard

Arnaud - 12 Jun 2005 08:33 GMT
Darryl Pierce a écrit :

>> Hello,
>>
[quoted text clipped - 16 lines]
> For components, there's some layout management available with MIDP 2.0,
> but it's only a *suggestion* for layouts.

Ok for command control. For others Item object, it's the same ? I can
use only layout? So if would something like this
Label Texfield Bouton
I can't
I could make only
Label TextFiled in layout
Button
Is it true ? It's not flexible :-(
Thx for your answer
Regards
Darryl Pierce - 12 Jun 2005 14:02 GMT
>> You can't control where Commands are displayed, it's a platform
>> dependant thing; i.e., one some handsets it's displayed as a dropdown
[quoted text clipped - 12 lines]
> Button
> Is it true ? It's not flexible :-(

I'm sorry, mate, but I can't parse your sentences above. What are you
trying to say? The layout manager is only a way to *suggest* a layout to
the handset. The final layout is always controlled by the handset
itself. For example, if you tried to layout a checkbox next to a text
field, and on the handset that would push the checkbox out of the screen
range, then the handset can (and probably would) move the checkbox to
the next line.

Signature

Darryl L. Pierce <mcpierce@gmail.com>
Visit my homepage: http://mcpierce.multiply.com
"By doubting we come to inquiry, through inquiry truth." - Peter Abelard

Arnaud - 12 Jun 2005 17:48 GMT
Darryl Pierce a écrit :

>>> You can't control where Commands are displayed, it's a platform
>>> dependant thing; i.e., one some handsets it's displayed as a dropdown
[quoted text clipped - 20 lines]
> range, then the handset can (and probably would) move the checkbox to
> the next line.

I would say : How can I set a checkbox at x=50 and y=100 (where x and y
are coords), how can I make ? With information taht you give me this is
impossible. Layout have a "fix size" : if I use a layout centers to
left, my checkbox will be place at left. If I would put my checkbox at
left with a marge to 10 pixels and a Label 80 pixels after, I can't. right ?

Thx for your answers and sorry for my poor english .

Regards

Arnaud


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.