Results 1 to 3 of 3
Thread: ordering moving images in swing
- 09-21-2010, 05:21 AM #1Member
- Join Date
- Sep 2010
- Rep Power
ordering moving images in swing
I have an app, where I display few images in a frame. We can move images.
Images are in order they are loaded, so that if we drag one image over other than one which got loaded later, gets on the top.
But I want the one to be dragged to get on top, irrespective of when it was loaded. (i.e irrespective of its order).
I think I did not write well enough to clearly express my concern.
I am using paintcomponent(). But problem is that my app allows to move/drag images over one other.
And I want the image which is dragged to be always on top. So, if there are two images (let us say A and B), then I want A to be on top if A is dragged over B and B to be on top(visible), if B is dragged over A. If both images are at different positions, both are visible.. but if they overlap each other ,then the one which is dragged over other should remain at top.
Hopefully I explained better this time.
- 09-21-2010, 07:37 AM #2
Please do not cross-post without notifying all threads of the cross-posts with links.
- By Perfectworld in forum Java AppletsReplies: 17Last Post: 01-16-2010, 09:09 AM
- By Chasingxsuns in forum New To JavaReplies: 5Last Post: 08-01-2009, 01:22 AM
- By killpoppop in forum AWT / SwingReplies: 7Last Post: 03-08-2009, 03:54 PM
- By ashton in forum New To JavaReplies: 10Last Post: 01-26-2009, 11:01 AM
- By Bubba_OH in forum New To JavaReplies: 5Last Post: 10-10-2008, 04:00 PM