Top "Jtextpane" questions

A Java Swing text component that can be marked up with attributes that are represented graphically.

Java: Register <ENTER> key press on JTextPane

I'm making an application with java that has a JTextPane. I want to be able to execute some code when …

java swing actionlistener jtextpane keycode
JTextPane highlight text

Can I highlight some text into a JTextPane starting from a value and ending from another value like the following …

java swing jtextpane
Resize dialog message (JOptionPane) for long sentence with fixed width

I'm trying to resize the height of the dialog box (JOptionPane) for long sentence with hyperlink. My code is .. public …

java swing resize joptionpane jtextpane
JTextPane - dynamic word wrap

I tried to use jTextPane1.setText("xxx xxxx xxx xxxxx xx xxx xxxx xxx etc..."); but JTextPane does not word …

java swing word-wrap jtextpane
Getting 'Attempt to mutate notification' exception

My goal is to implement blue coloring of keywords written by user into JTextPane. This is how my code look …

java swing jtextpane
Add HTML content to Document associated with JTextPane

I have a question regarding some simple console I'm making. I know that it's possible to add html content to …

java html swing document jtextpane
Adding text to a JTextPane without having it editable by the user?

So I've created my own text pane class (extending JTextPane) and I'm using the method below to add text to …

java swing jtextpane
JEditorpane vs. JTextPane

i have to create a project in java swing for my college. An editor of java files with proper text …

java swing jtextpane jeditorpane
Java - Change font in a JTextPane containing HTML

I have a JTextPane and I have some text within that JTextPane. However, because I have been using HTML within …

java swing jtextpane
How is word-wrapping implemented in JTextPane, and how do I make it wrap a string without spaces?

How exactly is word-wrapping implemented in JTextPane? I'm trying to understand exactly how it works so that I can modify …

java swing word-wrap jtextpane styleddocument