I already tried to put the 'textArea.addMouseListener(this);' inside the constructor but it is not working.
Please help me. Thanks!
Joined: Feb 23, 2007
First off, I advise you not to have your GUI class implement the MouseListener. It would be cleaner to just create an anonymous inner class. Next of all, you may have better luck getting decent responses if you show us compilable code. I don't want to see your whole program, but rather you should condense your code into the smallest bit that still compiles, has no extra code that's not relevant to your problem, but still demonstrates your problem, in other words, an SSCCE (Short, Self Contained, Correct (Compilable), Example). For more info on SSCCEs please look here: