Hi,
I am working on an Applet which provides some mouse practice for
new computer users in our local seniors' computer club. The applet
contains several cards, in a card layout, which are displayed to
the user one after the other as needed to present some particular
mouse operation. This all works fine. One card (card 4 below)
includes a textarea and a button. What I wish to do is have the user
use the mouse to select some text from the textarea and click the button.
I wish to detect what the user highlighted and store it as a string to
check.
However I am having a problem doing this. Parts of the program are below:
import java.applet.*;
import java.awt.Graphics;
import java.awt.Color;
import java.awt.*;
import java.util.*;
import java.awt.FontMetrics;
import java.awt.Font;
import java.awt.event.*;
import java.awt.image.*;
public class testmouse extends java.applet.Applet implements Runnable,
MouseListener, AdjustmentListener, ActionListener {