java - Changing the priority of children in a Composite -
i have composite called display has children elements placed in absolute layout. throughout program, these children can move around on composite , overlap. want create "priority" can choose children drawn on top of other elements. children custom class named llama made extends canvas. have integer field stores priority, don't know how make them display in order want them display (based on integer field). here's image of program displaying mean overlap.

basically, automatically choose order of display based on order added composite (as far can tell). how can change order fit priority field?
thanks in advance!
you need control.moveabove() , movebelow().
Comments
Post a Comment