Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

moving an undecorated frame  RSS feed

 
Samyak Joshi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found that we can remove the title bar and border from the java Frames using

frame.setUndecorated(true);

but after that how do i move this frame? I mean i can add buttons for maximizing and exiting but what about moving this frame?

Please help.
Amit
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add a MouseMotionListener to the window which moves the window when it is dragged.

Under X/Windows, most window managers have a way to let you drag a window in the content area.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!