Answers for "java draggable jframe"

0

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();
   		}
	});
  }
}
Posted by: Guest on March-06-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language