This commit is contained in:
2025-09-26 11:16:47 +02:00
parent a9782efcdd
commit 7c72e94d8d
18 changed files with 174 additions and 36 deletions

View File

@@ -0,0 +1,20 @@
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
public class ClickSwapImageEvent extends MouseAdapter {
private ImageWindow window;
public ClickSwapImageEvent(ImageWindow window) {
this.window = window;
}
public void mouseClicked(MouseEvent event) {
if(event.getX() > this.window.getWidth() / 2) {
this.window.nextImage();
return;
}
this.window.lastImage();
}
}