Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
dev_jangir
Posts: 47
Registered: 09-11-2009
Accepted Solution

TextField

Hi All

i am creating a application in i want to use textfield that must be look like java swing textfield 

in blackberry border is not shown 

so  how can i use it?

Please use plain text.
Developer
mabs
Posts: 129
Registered: 09-21-2009

Re: TextField

maybe try this?

 

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800345/...

 

This allowed me to create a field that looked like a text box.

Please use plain text.
Developer
kumaresan
Posts: 183
Registered: 12-17-2008

Re: TextField

 Like below code snip, create border for TextField

 

           TextField ff = new BasicEditField();
           {

                public void paint(Graphics g){                       
                    g.drawRect(0, 0, getWidth(), getHeight());
                    super.paint(g);
                }
            };  

kums

******************************

Press kudos which the post help you
Please mark posts as solved if you got a solution
Please use plain text.
New Developer
dev_jangir
Posts: 47
Registered: 09-11-2009

Re: TextField

Thanx for reply

but one problem is coming more is that two fields are not coming in the same rows 

i am creating email addredd = textfield

but email is coming in above the text field 

how can i solve this?

Please use plain text.
Developer
kumaresan
Posts: 183
Registered: 12-17-2008

Re: TextField

Use HorizontalFieldManager and add your textfield to this manager.

 

then add your manager to screen.

kums

******************************

Press kudos which the post help you
Please mark posts as solved if you got a solution
Please use plain text.