I have used EditField
with some specified width and height that works good but, when I'm entering the text in EditField
I'm unable to see the text and some times when I'm clicking on that I'm getting NullPointerException
. I'm not able to understand whether the text is entered or not. Also, I cannot see the cursor in my field. If there are any mistakes please give me suggestions.
My code is:
private EditField edto;
private int tosetWidth =400 ,tosetHeight = 50;
public WelcomeScreen()
{
/* Border For EditFields */
Border bdr = BorderFactory.createRoundedBorder(new XYEdges(4, 4, 4, 4),Border.STYLE_SOLID);
edto = new EditField(){
protected void layout(int width, int height)
{
setExtent(tosetWidth, tosetHeight);
}
};
edto.setBorder(bdr);