1

how to move a jframe which has no taskbar?

frame.addmousemotionlistener(this);

public void mousedragged(MouseEvent e)
{
   // What to write here
}

I tried setBounds of jframe but it flicker when we try to move the frame.

Votes + Comments
good question +1
5
Contributors
6
Replies
8
Views
5 Years
Discussion Span
Last Post by Kyberium
0

@Majestics

I really can't ...(better ask question in all your cases), not sure if with mouse or as suggested @hfx642 ???

both ways are pretty simple,

you must waiting for some of profesional, because your last waiting moved you wrong way :-)

Edited by mKorbel: n/a

0

Sorry its title bar.... I am trying different codes , some are working but really slow. I will post the code which suit best for this situation, if i get it before professionals... :)

0

try this

frame.addmousemotionlistener(this);
public void mousedragged(MouseEvent e)
{
   frame.setLocation(frame.getX()+e.getX(),frame.getY()+e.getY());
}

Edited by ~s.o.s~: Added code tags, learn to use them.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.