java - Copying HTML formatted text from JTextPane to Notepad++ -


I am working on a JtextPane and I load an HTML file using textPane.setPage (url) I am . It looks appropriate in HTML format, but when I select all and I click on copy and paste it into Notepad ++, then it does not appear in the proper HTML format; Instead, it shows the content of the html file in a row.

Please any help would be appreciated.

Attach the JTextPane code.

  TextPen = new JetExpain (); TextPane.setContentType ("text / html"); TextPane.setAutoscrolls (right); HTMLEditorKit htmlEditor = New HTMLEditorKit (); Document Doctor = htmlEditor.createDefaultDocument (); TextPane.setEditorKit (html editor); TextPane.setDocument (doctor); TextPane.setEditable (False); TextPane.setBackground (Color.WHITE); TextPane.getActionMap (); TextPane.setFont (EpicelanTheme.Gate FontAntA (.) Derive Font (17.0F));  

After U, go to "Language" and choose HTML


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -