Results 1 to 3 of 3
Thread: ordering moving images in swing
- 09-21-2010, 04:21 AM #1
Member
- Join Date
- Sep 2010
- Posts
- 1
- Rep Power
- 0
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.
Thanks!
- 09-21-2010, 06:37 AM #2
Cross posted
Swing - Reordering Images in Jframe
db
edit and java.net Forums : ? ...Last edited by DarrylBurke; 09-21-2010 at 06:47 AM.
-
Please do not cross-post without notifying all threads of the cross-posts with links.
Similar Threads
-
[Applet] Clicking images & moving them.
By Perfectworld in forum Java AppletsReplies: 17Last Post: 01-16-2010, 08:09 AM -
Using Images in Swing
By Chasingxsuns in forum New To JavaReplies: 5Last Post: 08-01-2009, 12:22 AM -
Moving Images in JPanel
By killpoppop in forum AWT / SwingReplies: 7Last Post: 03-08-2009, 02:54 PM -
need help in uploading images in swing program!!!
By ashton in forum New To JavaReplies: 10Last Post: 01-26-2009, 10:01 AM -
Default Swing Images
By Bubba_OH in forum New To JavaReplies: 5Last Post: 10-10-2008, 03:00 PM


LinkBack URL
About LinkBacks

Bookmarks