Microsoft
Software
Hardware
Network
Question : anyone familur ith using the swing classes HTMLEditorKit StyleSheet and reading a external CSS
hello i am trying to read an external CSS file and get some attributes , like background color of a ID
so this part works ok
HTMLEditorKit kit = new HTMLEditorKit();
HTMLDocument doc = (HTMLDocument) kit.createDefaultDocument(
);
StyleSheet styles = doc.getStyleSheet();
styles.importStyleSheet( new URL("
http://test2.mydomain
.com/user.
css
") );
Enumeration rules = styles.getStyleNames();
while (rules.hasMoreElements()) {
System.out.println("------
----------
----------
---------"
);
String name = (String) rules.nextElement();
Style rule = styles.getStyle(name);
System.out.println(name+"-
-->"+rule.
toString()
);
}
i am trying to get the background color of the content
this is what the outs are printing
#content--->NamedStyle:#co
ntent {resolver=AttributeSet,nam
e=#content
,}
not sure where to go from here?
thanks for any help
Answer : anyone familur ith using the swing classes HTMLEditorKit StyleSheet and reading a external CSS
you can also donate to non-profit organisations...
Random Solutions
100% CPU usage in vCenter but not in taskmanager on the Windows NT 4.0 VM that has been converted
DB2 vs SQLServer
Cannot Replicate FREEBUSY from Exchange 2003 to Exchange 2010 - EVENT 14029, 4003,
How to write script for the requirment?
web design vs dev
WebService Client problem
Is there any way to limit what the users see in shared calendars in Exchange 2003 / Exchange 2007?
PDFs and iPads
The fool says in his heart ...
SBS2008 Folder redirections feature stability ?