• Post Reply Bookmark Topic Watch Topic
  • New Topic

get jdialog's new location after mouse drag

 
mark goking
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
im trying to get a jdialog's new location after a mouse drag.

but my current code does not work. the jdialog added the mousemotion and mouselisteners and it only works if the mouse events are within the jdialog's contentpane area.

if i drag the titlebar, nothing happens. i dont see any way to get the titlebar object in the api.

anyone got ideas how to go about this?
 
mark goking
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi admin, please delete this thread. i could not find a way to delete this after i accidentally pressed the create new topic.

i got to solve this problem on which class i should use.

it is ComponentAdapter.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I will let this thread remain. It will be useful for future users with the same problem.
 
mark goking
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
for anybody's benefit, an explanation can be found here

http://tech.chitgoks.com/2009/11/19/get-jdialog-location-after-mouse-drag/
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!