aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/jogamp/opencl/demos/fft/PaintView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/jogamp/opencl/demos/fft/PaintView.java')
-rw-r--r--src/com/jogamp/opencl/demos/fft/PaintView.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/jogamp/opencl/demos/fft/PaintView.java b/src/com/jogamp/opencl/demos/fft/PaintView.java
index 9dea3c8..4a6535a 100644
--- a/src/com/jogamp/opencl/demos/fft/PaintView.java
+++ b/src/com/jogamp/opencl/demos/fft/PaintView.java
@@ -16,6 +16,7 @@ import java.awt.image.BufferedImage;
* Draws an image and lets you draw white dots in it with the mouse. Or big white dots with code.
* @author notzed
*/
+@SuppressWarnings("serial")
class PaintView extends ImageView implements MouseListener, MouseMotionListener {
Graphics2D imgg;
@@ -70,14 +71,14 @@ class PaintView extends ImageView implements MouseListener, MouseMotionListener
}
public void mousePressed(MouseEvent e) {
- if (e.getButton() == e.BUTTON1) {
+ if (e.getButton() == MouseEvent.BUTTON1) {
addMouseMotionListener(this);
drawPaint(e.getX(), e.getY());
}
}
public void mouseReleased(MouseEvent e) {
- if (e.getButton() == e.BUTTON1) {
+ if (e.getButton() == MouseEvent.BUTTON1) {
removeMouseMotionListener(this);
//drawPaint(e.getX(), e.getY());
}