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
SMTP Sending on behalf of
Active Directory queries to pull distribution list members and user email addresses
use wireshark to capture whats happening during the logon process
connect an iPhone to Windows SBS 2003
Thumb Drive -- file transfer fails ?
Need Excel User Function to Convert Tuesday, June 08, 2010 3:16 PM to mm/dd/yy
Crystal in Visual Studio dynamic Database persistant on postback
Problem with Exchange 2010 " initialization failed"
Excellent uninstall script from Zoofan. Need a way to speed it up or run multiple machines at the same time.
Can't Remote Desktop to Forefront TMG Server