set the alignment of the jcomponent added