Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getting the value of an attribute  RSS feed

Mathias Nilsson
Ranch Hand
Posts: 367
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I can't get this to work. I have html data in a JTextPane. The user can make text bold, italic and so forth. If we view to source it looks like this

How can I check the value in the class=""? I can't get the mynormal and myfont6 with any of the methods in the Attribute class. Can someone lead me to the right direction?

here is my code so far. This in a ActionListener

// Mathias
[ December 19, 2005: Message edited by: Mathias Nilsson ]
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!