java draggable jframe
class MyWindow extends JFrame {
int posX=0,posY=0;
public MyWindow(){
this.setUndecorated(true);
this.addMouseListener(new MouseAdapter()
{
public void mousePressed(MouseEvent e)
{
posX=e.getX();
posY=e.getY();
}
});
}
}