JTextPane woes...




I need to switch from JTextArea to JTextPane b/c need to change font color according to user input, but am running into all sorts of problems.. you can't specify a size in rows and columns like you can in JTextArea, setSize() is being ignored.. also why no append() method in JTextPane.. how do I achieve what append() method does... such complication simply b/c I need to change font color (JUST font color) according to user input... :(


(this is for an IM chat window... so on top window need to display users' ID with their message.. ID needs to be a diff. font color..
sounds simple.. but well, JTextPane making this very complicated..)


would very much appreciate some help..  thank you..
.



Relevant Pages

  • Highlighter remove font color
    ... When I use a highlighter in a JTextPane, the font color is not setting as ... I use java 1.4.2_08 on Mandrake 10.0. ... The color of text is magenta, but in the highlighter area it is black. ...
    (comp.lang.java.gui)
  • Re: Mixing font colors in a JTextArea
    ... >> JTextArea.setForegroundsets the font color for the entire component, ... > Use HTML in a JEditorPane. ... > look to a JTextPane and manipulate the document attributes. ... HTML or the simple default styled text with both. ...
    (comp.lang.java.gui)
  • Re: JTextPane woes...
    ... Christian Kaufhold wrote: ... also why no appendmethod in JTextPane.. ... such complication simply b/c I need to change font color ... (this is for an IM chat window... ...
    (comp.lang.java.gui)
  • using manifest problem
    ... i use manifest file in order to make XpStyle Button ... but i have to change font color of the button but i doesn't work when i use ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Add color to a field
    ... Conditional Formatting property to change font color in both single ... and continuous form view. ... but only in Single Form view. ...
    (microsoft.public.access.forms)