I added the missing MouseEventListener class to the html FormView class.
However, like most of the HTML stuff, this still lacks all the
wiring-together.

2006-03-21  Roman Kennke  <[EMAIL PROTECTED]>

        * javax/swing/text/html/FormView.java
        (MouseEventListener): New inner class.

/Roman

Index: javax/swing/text/html/FormView.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/text/html/FormView.java,v
retrieving revision 1.1
diff -u -r1.1 FormView.java
--- javax/swing/text/html/FormView.java	25 Jan 2006 15:10:04 -0000	1.1
+++ javax/swing/text/html/FormView.java	21 Mar 2006 21:38:01 -0000
@@ -41,6 +41,8 @@
 import java.awt.Component;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
 
 import javax.swing.JButton;
 import javax.swing.JCheckBox;
@@ -83,6 +85,24 @@
   implements ActionListener
 {
 
+  protected class MouseEventListener
+    extends MouseAdapter
+  {
+    /**
+     * Creates a new <code>MouseEventListener</code>.
+     */
+    protected MouseEventListener()
+    {
+      // Nothing to do here.
+    }
+
+    public void mouseReleased(MouseEvent ev)
+    {
+      String data = getImageData(ev.getPoint());
+      imageSubmit(data);
+    }
+  }
+
   /**
    * If the value attribute of an <code>&lt;input type=&quot;submit&quot;&gt>
    * tag is not specified, then this string is used.

Reply via email to