Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Trusted Contributor
Posts: 100
Registered: ‎03-31-2012
My Device: Blackberry 9780
My Carrier: Telkomsel

[Help] Make a horizontal design edit field for login form

Sorry if my questions are too basic. I want to create and display login form editfield purpose. That second text field username and password. Look I want is the same as blackberry facebook login page. I've made ​​the background look and use my background image, just make EditText this second design. I beg your help

 

Thanks

Regards,
Bertho
Developer
Posts: 96
Registered: ‎06-05-2012
My Device: Developer
My Carrier: Developer

Re: [Help] Make a horizontal design edit field for login form

Trusted Contributor
Posts: 100
Registered: ‎03-31-2012
My Device: Blackberry 9780
My Carrier: Telkomsel

Re: [Help] Make a horizontal design edit field for login form

Thanks..i'll try

Regards,
Bertho
Trusted Contributor
Posts: 100
Registered: ‎03-31-2012
My Device: Blackberry 9780
My Carrier: Telkomsel

Re: [Help] Make a horizontal design edit field for login form

[ Edited ]

How to make textfield display as shown below

 

http://efferential.com/Blackberry/1.png

 

Look I made ​​like this now :

 

http://s16.postimage.org/qm8vv9ln9/view.png

 

How do I design it?

Regards,
Bertho
Developer
Posts: 96
Registered: ‎06-05-2012
My Device: Developer
My Carrier: Developer

Re: [Help] Make a horizontal design edit field for login form

Hi,

you need to customize your field and for border around field use field.setBorder(BorderFactory.createSimpleBorder(new XYEdges(1, 1, 1, 1))); method.

thanks,
Trusted Contributor
Posts: 100
Registered: ‎03-31-2012
My Device: Blackberry 9780
My Carrier: Telkomsel

Re: [Help] Make a horizontal design edit field for login form

[ Edited ]

How do I make designs like in my example? You're sample only for the border. I want to make taller textfield same as in the picture. Can I be an example?

Regards,
Bertho
Developer
Posts: 19,636
Registered: ‎07-14-2008
My Device: Not Specified

Re: [Help] Make a horizontal design edit field for login form

The standard controls you have over a Field are

 

a) Its Border - see setBorder and BorderFactory

b) its Background - see setBackground and BackgroundFactory

c) its spacing - see setMargin and setPadding

 

If you want do do anything that is beyond what you can do with these, then you typically have to customize the Field.  Here is a KB article that talks about doing that:

http://supportforums.blackberry.com/t5/Java-Development/Create-custom-fields/ta-p/444962

 

And here are some already extended Fields that you might find useful - the code in here shows good practice too, so I would encourage you to review these and perhaps use them as a base when considering creating your own Fields.

http://supportforums.blackberry.com/t5/Java-Development/Implement-advanced-buttons-fields-and-manage...

 

Hope this helps.