15 lines
333 B
Java
15 lines
333 B
Java
|
import javax.swing.*;
|
||
|
import java.awt.*;
|
||
|
import java.awt.event.*;
|
||
|
|
||
|
public class Action implements MouseListener{
|
||
|
@Override
|
||
|
public void mousePressed(MouseEvent e){
|
||
|
System.out.println("mouseDragged");
|
||
|
}
|
||
|
@Override
|
||
|
public void mouseReleased(MouseEvent e){
|
||
|
System.out.println("mouseReleased");
|
||
|
}
|
||
|
}
|