I cannot give fixed value of int because there can be added more than 20 or 50 SubPanels.
1. loop will never advance (i will always be 0)
3. MainPanel already has a List of SubPanels.
2. it is blindly casting the contents of main without actually knowing what's on it
because it was possible just add SubPanels via the addSubPanel method
and reset the string means:
for example write a getter which returns the list of SubPanels and by using it extract the details, am I right?
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |