Using HTMLEditorKit in Java, how do I find what local file path <img src=…> tags will use?
问题 I've got a java app running, and I'm using the HTMLDocument/HTMLEditorKit functionality to build my chat room. So far with plenty of success as far as building my stylesheet, inserting text messages, and so forth. So now I've come to... images! I had thought that if I were adding tags such as: <img src="myimage.png"> ... that my file then just needed to be in the same directory as the java app when I ran it. But I've run through all sorts of things and tried subdirectories, and it can't seem