• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JEditorPane and JTextArea

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a splitpane. On the left side of the splitpane I have a panel
which has a textarea. On the right side of the splitpane I have another
panel with a JEditorpane. The contents of the JEditor pane is an
html file that has hyperlinks. The hyperlinks are links to some files.
When I click on the hyperlink, I want the particular file to be
displayed in the textarea. At present when I click on the hyperlink,
the file contents are loaded in the JEditorPane. But, I want the
contents to be loaded in the textarea. How do I achieve this?
Please, can anyone give me some inputs how I implement the hypertextListener
 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
In hyperlinkUpdate method try to use this code,

Hope This Helps
All The Best
 
seema prakash
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the help Sasi Kala, it works !
 
reply
    Bookmark Topic Watch Topic
  • New Topic