Hello there, I'm currently stuck with trying to append HTML to the HTMLPane object. I know of the two methods:
getContents and setContents however the issue I have is that if I were to do:
The content would not really be appended, it would re set the data in the HTMLPane which is not what I want due to:
'The application I am developing is a simple log file that is retrieving remote data and appending it to a front end. The user can then just scroll through the text already there and then select parts they need.'
Right now if I were to use what I posted above, the selection made by the user would be removed every time the setContents was called. I am looking for something similar to VerticalPanel where I can just add the html however I've tried this already and after appending the VerticalPanel object to a Window object I am unable to select the text even with the method 'setCanSelectText(true)'.
Any help would be greatly appreciated,
Many thanks
Ed
getContents and setContents however the issue I have is that if I were to do:
Code:
setContents(getContents() + "hello")
'The application I am developing is a simple log file that is retrieving remote data and appending it to a front end. The user can then just scroll through the text already there and then select parts they need.'
Right now if I were to use what I posted above, the selection made by the user would be removed every time the setContents was called. I am looking for something similar to VerticalPanel where I can just add the html however I've tried this already and after appending the VerticalPanel object to a Window object I am unable to select the text even with the method 'setCanSelectText(true)'.
Any help would be greatly appreciated,
Many thanks
Ed
Comment