• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Order of adding components

 
Priya Kannan
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm developing a drag and drop application. I drag labels(with icons set) by changing their x & y positions using MouseMotionListener. I add this array of labels to a panel in order. The problem is when I drag the labels, the labels that are added last, go below the ones that were added first(due to the order in which they were added). They don't overlap. I want all labels irrespective of their order of addition to the panel, to overlap all other labels when they are dragged individually.
Please help.
Thanks.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since this is posted in Intermediate, I am closing it here.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic