Dear all,
I'm trying to develop two managers who in charge for handling one screen.
The first Screen, let's say TopHorizontalScreen, occupies the top of the screen and manages fields horizontally.
The second, BottomVerticalScreen occupies the rest of the screen and manages fields vertically.
What i can do successfully for now is, letting the screen being managed by one of the screens, not both.
This is the way the screens are added to the screen :
Code:
public CompactScreen() {
add(bottomVerticalManager);
add(topHorizontalManager);
} And as i said, it doesn't work. Only one manager can handle the screen.
But if i change the code to :
Code:
public CompactScreen() {
add(topHorizontalManager);
topHorizontalManager.add(bottomVerticalManager);
} It works!! But i'm confuse. Why should i put a manager inside another? Adding the bottomVerticalManager to the topHorizontalManager means the former is managed by the latter, right?