Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Beginning Java and the fly likes Order of adding components Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Order of adding components" Watch "Order of adding components" New topic
Author

Order of adding components

Priya Kannan
Ranch Hand

Joined: Jan 19, 2001
Posts: 72
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

Joined: Sep 29, 2000
Posts: 8521
Since this is posted in Intermediate, I am closing it here.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
jQuery in Action, 2nd edition
 
subject: Order of adding components
 
Similar Threads
ToolTip help
Displaying Playing Cards...
Order of adding components
dragging Jlabel
Order of adding components