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

Reply
Forums Advisor I
vaishali28
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10
Accepted Solution

Urgent:regarding textbox with border

How to make the textbox field in blackberry same as it is in facebook login page with same color border....

need urgent reply

Thank you...

Please use plain text.
Developer
simon_hain
Posts: 15,872
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Urgent:regarding textbox with border

check the borderfactory and setborder methods.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
Forums Advisor I
vaishali28
Posts: 501
Registered: ‎03-01-2013
My Device: BlackBerry Z10

Re: Urgent:regarding textbox with border

Thanks Simon...the problem is solved......

Here is the code

 

 


EmailAddressEditField email= new EmailAddressEditField("Email Id:","");

add(email);

 

XYEdges edge=new XYEdges(2,2,2,2);
        
        int color1=Color.White;
        email.setBackground(BackgroundFactory.createLinearGradientBackground(
                color1,color1,color1,color1));
        
        int color2=Color.Navy;
        
        XYEdges color=new XYEdges(color2, color2, color2, color2);

        email.setBorder(BorderFactory.createSimpleBorder(
                edge,color,Border.STYLE_SOLID));

 

Please use plain text.