I get
Code:
cannot find symbol
symbol : class NumericTextFilter
and if I try
PHP Code:
selector.setFilter(new NumericTextFilter(ALLOW_DECIMAL));
I also get
Code:
cannot find symbol
symbol : variable ALLOW_DECIMAL
Thanks for the help, never thought learning java by myself was this hard.
EDIT: neha.chaudhary didn't saw your post, what you said does works, now just to learn I want to know why the setFilter() didn't worked out for me, and yes I'm trying to learn from the API Reference but it sometimes gets confusing.
EDIT #2: While trying to set background I did
PHP Code:
BasicEditField hasta = new BasicEditField("To::","",9,BasicEditField.FILTER_NUMERIC){
public void paint(Graphics g){
g.setBackgroundColor(Color.DARKBLUE);
g.clear();
super.paint(g);
}
};
and it works, but how do I put background to the whole MainScreen?