• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

get jdialog's new location after mouse drag

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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/
 
reply
    Bookmark Topic Watch Topic
  • New Topic