Suppose there are many viusal components in a frame, How to arrange the table order of them?

Add actionlistener to each component? Anyone has good idea?