07-21-2009 12:10 PM - edited 07-21-2009 12:14 PM
Hello there, i having this problem.
I have 3 objects
The first object is just a vertical manager with an image and some labels
The second object is a vertical field that have X numbers of a Y object
The Y object is a horizontal manager with some elements in it
In the principal screen, if a draw the second object first, and then the first object it works perfectly, i get to put a gray color in the Y objects telling it that the object is focused; and after finishing traveling all the Y objects (that are actually elements of the second object) i get to to put a gray color in the first object (that is at the botton in the screen).
But when i draw the first object first, and then the second object, i just get to paint while selecting the first object. When i try to focus the Y objects (that are inside of the second object) it dosen´t put the gray color in the element, but i know the focus is ok because when i click in them, i get in an alert information of the Y object.
Since i'm extending to Vertical and Horziontla Field the clases, I'am using this methods in the First and Y objects
protected void paint(Graphics graphics)
graphics.setBackgroundColor(isFocus() ? Color.LIGHTGREY : Color.WHITE);
protected void onFocus(int direction)
protected void onUnfocus()