[Imagetools-commit] SF.net SVN: imagetools:[5] trunk/imagetools/src/net/codebuilders/desktop/ image
Status: Beta
Brought to you by:
cmarcum
|
From: <cm...@us...> - 2009-04-07 23:45:38
|
Revision: 5
http://imagetools.svn.sourceforge.net/imagetools/?rev=5&view=rev
Author: cmarcum
Date: 2009-04-07 23:45:35 +0000 (Tue, 07 Apr 2009)
Log Message:
-----------
Added method to tear down mouse listeners.
Modified Paths:
--------------
trunk/imagetools/src/net/codebuilders/desktop/imagetools/ImageArea.java
Modified: trunk/imagetools/src/net/codebuilders/desktop/imagetools/ImageArea.java
===================================================================
--- trunk/imagetools/src/net/codebuilders/desktop/imagetools/ImageArea.java 2009-04-05 23:19:59 UTC (rev 4)
+++ trunk/imagetools/src/net/codebuilders/desktop/imagetools/ImageArea.java 2009-04-07 23:45:35 UTC (rev 5)
@@ -384,7 +384,8 @@
private void setupCropMouseListeners() {
- this.removeMouseListener(ml);
+ // this.removeMouseListener(ml);
+ this.tearDownMouseListeners();
this.ml = new MouseAdapter() {
@Override
@@ -454,7 +455,8 @@
private void setupLineMouseListeners() {
- this.removeMouseListener(ml);
+ // this.removeMouseListener(ml);
+ this.tearDownMouseListeners();
this.ml = new MouseAdapter() {
@Override
@@ -523,7 +525,8 @@
private void setupTextMouseListeners() {
- this.removeMouseListener(ml);
+ // this.removeMouseListener(ml);
+ this.tearDownMouseListeners();
// setupRectangleMouseListeners currently work
// except for pemenently adding line to image
this.ml = new MouseAdapter() {
@@ -592,6 +595,11 @@
}
+ public void tearDownMouseListeners() {
+ this.removeMouseListener(ml);
+ this.removeMouseMotionListener(mml);
+ }
+
/**
* @return the mouseEvtType
*/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|