Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: Convert String to Color
|
Posted: Mar 1, 2002 1:29 PM
|
|
Looks like stringToColor() is a method of javax.swing.text.html.StyleSheet
according to my documentation. However, you are calling toColor(), which doesn't appear in the Java API, as far as I can see and since you are calling it in your own class which doesn't define it, that is why the compiler is displeased.
By the way, don't forget to use the [java] and [/java] tags in your post to get nicely-formatted code (look under the Formatting Your Post heading at the bottom of the page, when you are posting, or go to the "How to Post in the Artima Forums" page at http://www.artima.com/forums/howtopost.html).
|
|