wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes How make a movable frame without title bar in swing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How make a movable frame without title bar in swing " Watch "How make a movable frame without title bar in swing " New topic
Author

How make a movable frame without title bar in swing

Sandip Bhoi
Greenhorn

Joined: Dec 12, 2006
Posts: 1
Can any body help me to know that how we can get a movable frame without title bar..


thanks
Arno Reper
Ranch Hand

Joined: Mar 14, 2006
Posts: 286
is this really about Groovy or some other oo scripting language?


The man who makes no mistakes does not usually make anything<br /> <br />>>> SCJP 5.0 >> SCJD B&S <<< In progress
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
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 ]
 
 
subject: How make a movable frame without title bar in swing
 
Similar Threads
JInternalFrame title bar
AWT question from javaprepare:
Components and Containers : My Notes
Creating frame withouth title bar
How to remove Frame/Window Title Bar