Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

dragging Frame ?  RSS feed

 
ali rafiq
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI ..
i wanna ask u about frame dragging .. mostly window or frame drag from the title bar.. but i saw some windows. which one drag to the body ..
do we drag the frame from the component of the body?
 
ali rafiq
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any body can reply me?
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Register a mouse listener with your Window.
utalize the mousePressed(MouseEvent m) and the mouseDragged(MouseEvent m) and mouseReleased(MouseEvent m) methods. When dragging, capture the mouseEvent.getX and mouseEvent.getY and change the location of your window.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!