Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

images inserted into JTextPane  RSS feed

raiful tompkins
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when I insert an image into a JTextPane from either a file or the clipboard, where is the actual image stored. It seems to be part of the document. If I copy the document to another folder, then put it on a cd and run it on a different computer which I'm pretty sure doesn't have a copy of the image file, the image is still located in the DefaultStyledDocument and can be viewed. How can that be? How does that happen, or maybe more to the point, how does it do that. I have tried writing the document out to a file with an ObjectOutputStream, deleting the document from its original file, renaming the file, and changing the image format of the original, without affecting the image that is in my document. It seems strange and I don't trust it, so I hope someone has some insite on what's going on with it. rt.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!