11-18-2009 02:48 AM
How can i draw border for BasicEditField in 4.2 like border of dialog in following image?

plz give me some code or sample if it is possible.
Thanks!
11-19-2009 02:24 AM
Check this Thread.
http://supportforums.blackberry.com/t5/Java-Develo
11-19-2009 04:42 AM
Many thanks, i'll check it out. Hope it works
11-19-2009 07:59 AM
Hi, I can provide you some thing for AutoEditField....i.e drawing the BackGround for autoeditField instead pf BasicEditField.
11-19-2009 08:03 AM
Hi You can see the following snippet for Boundry arround a AutoEditFiled....
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.*;
/**
*
*/
public class EditBoxCustom extends AutoTextEditField
{
public EditBoxCustom()
{
}
public EditBoxCustom(String text,long Style)
{
super("","",800,Style);
}
public EditBoxCustom(String text,String intText,int index,long Style)
{
super("",intText,800,Style);
}
protected void paintBackground(Graphics g)
{
g.setColor(Color.BLUE);
}
}