I'm trying to use TextEditorPane's clean/dirty functionality in my application.
In order to do this I've had to write my own outputStream so that I can use TextEditorPane.save(). The 'file' I am editing is being accessed via a proprietary API not a local file or even something well understood like FTP.
The problem I am encountering is that when I call save() and the save fails the TextEditorPane is still marking itself clean. What do I have to do so that it understands that the save failed? I have caused my output stream's flush() method to throw an IOException and TextEditorPane still marks itself as clean after the save()
