File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How make a movable frame without title bar in swing

 
Sandip Bhoi
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can any body help me to know that how we can get a movable frame without title bar..


thanks
 
Arno Reper
Ranch Hand
Posts: 286
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is this really about Groovy or some other oo scripting language?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
add a mouseMotionListener, and in mouseDragged() reset the location of the frame.

the frame will need to have an unoccupied area, or a component that does not
consume the event

[EDIT]
in case 'without title bar' is the problem
frame.setUndecorated(true);
[ December 12, 2006: Message edited by: Michael Dunn ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic