I tried posting this message on my favorite Java forum, but I got no response. I find as my questions become more advanced it is harder to get assistance. :]
So I thought I would try it here, although it is not directly related to OpenJUMP. (It is a question I am trying to solve as part of my free form labeling plug-in.) "I'm trying to figure out the best way to obtain AttributedString objects from a Swing component. It seems like the Swing text components that allow you to work with styled text store their text in a StyledDocument class or something similar. What I would really like is to find a way to obtain AttributedString object from these components. Is there a way to do this directly? How about indirectly? I took a look at the Javadoc for StyledDocument, and it appears its getText methods return plain Strings, which means I would loose the styling information. I need AttributedString objects because I am doing custom rendering of text on a JPanel using the TextLayout class. Thank you for any suggestions." The Sunburned Surveyor ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel