styleddocument Questions
5
Solved
I am trying to create simple IDE and coloring my JTextPane based on
Strings (" ")
Comments (// and /* */)
Keywords (public, int ...)
Numbers (integers like 69 and floats like 1.5)
The way i col...
Carmarthenshire asked 8/7, 2015 at 17:14
2
StyledDocument contains various methods to set styles. Like setCharacterAttributes.
But I can't see any methods to remove styles.
Is there any?
Egarton asked 5/3, 2014 at 0:34
3
Solved
I've been searching for this for a while and so far all I've been able to come up with is how to create a style and apply it to a character like so:
StyledDocument doc = (StyledDocument) new Defau...
Breakout asked 25/10, 2012 at 17:57
3
Solved
I am trying to create a text editor. I am using a JTextPane with a StyledDocument. What I am trying to implement is a way to change the attributes of selected text.
This works in the following way...
Queri asked 7/1, 2013 at 15:22
1
Solved
I am trying to make a small HTML-wysiwyg with a JTextPane but I can't get the BackgroundAction to work. I am using setCharacterAttributes on the StyledDocument of the JTextPane but it seems problem...
Wuhsien asked 8/11, 2012 at 8:52
1
How exactly is word-wrapping implemented in JTextPane?
I'm trying to understand exactly how it works so that I can modify the behavior. Right now, if I have a standard JTextPane inside a JScrollPa...
Suprarenal asked 12/8, 2011 at 6:48
3
Solved
In an every article the answer to a question "How to append a string to a JEditorPane?" is something like
jep.setText(jep.getText + "new string");
I have tried this:
jep.setText("<b>Termi...
Moonfaced asked 30/10, 2010 at 14:49
1
© 2022 - 2024 — McMap. All rights reserved.