Results 1 to 1 of 1
Thread: XML + XSL in JTextpane
- 03-10-2011, 02:51 PM #1
Member
- Join Date
- Mar 2011
- Posts
- 2
- Rep Power
- 0
XML + XSL in JTextpane
Hi,
I'm creating a special text editor.
Now i need to mark different words. For example the verbs in yellow, the nouns in red etc.
I want to do this with XML.
For example the sentence is "This is a sample sentence"
With XML tags this looks like this
<sentence>
<xxx>This</xxx><verb>is</verb><xxx>a</xxx><xxx>sample</xxx><noun>sentence</noun></sentence>
With this XML and XSL i want to color the verbs and nouns.
Additionally i want to detect what type of word is selected when the user selects a word.
Does anyone knows how to do this ?
Greetings
Similar Threads
-
JTextPane
By xXx BlitzK xXx in forum AWT / SwingReplies: 1Last Post: 12-16-2010, 07:08 AM -
Reading from a JTextPane
By Mash in forum AWT / SwingReplies: 7Last Post: 04-17-2010, 03:33 PM -
JTextpane
By Mash in forum AWT / SwingReplies: 1Last Post: 04-15-2010, 06:36 PM -
[SOLVED] jTextPane to xml
By er_zhong in forum New To JavaReplies: 9Last Post: 04-15-2009, 04:46 AM -
Transparent JTextPane
By Ada in forum AWT / SwingReplies: 1Last Post: 05-31-2007, 09:50 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks