2
HTMLEditorKit kit = new HTMLEditorKit();
HTMLDocument doc = new HTMLDocument();`
this.setEditorKit(kit);
this.setDocument(doc);
それから私はやる:
profilePictureSrcはURLオブジェクトであるprofilePictureSrc = "http://ola/profilePicture1.jpg";
chatContent ="<img src=\"" + profilePictureSrc + "\">";
。
それは動作しますが、私は(Java Hashtable put method slow down my application)の代わりにURLの文字列を使用する必要があります
どのように私はそれを行うことができますか?画像ファイルをどこかに置き、相対パスを使ってそれらに到達する必要がありますか?あなたは文字列にURLオブジェクトに変換することができ、あなたのアイデアをありがとうございました
よろしく