• Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding listeners in textarea  RSS feed

 
Seema Sharma
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am working for creating help page. After search is done, i get the required texts which are placed in Jtextarea. On clicking each text, respective information page should be displayed in JEditorpane.
Please help me in knowing which listener i can use to click each text.

I have used document listener but not performing what i require.


Please correct me.

Regards,
Seema
 
Rob Spoor
Sheriff
Posts: 21092
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are comparing DocumentEvents with Strings. That will always yield false.

Also, you may want to know that an insertUpdate event is triggered for every addition to the document. When you're typing, that is one event for each typed character.
 
Jelle Klap
Bartender
Posts: 1952
7
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On a side note, you may want to look at JSR 97, which is the JavaHelp 2.0 specification. More information and downloads can be found here.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!