styleClass ain't working in neither Creator 2 nor Netbeans 5.5

Hi,

I quote from Creator 2 fieldguide. Does this work?

Make sure the component is still selected and type in the text headingStyle

for property styleClass (do not use the initial dot from the style sheet file)

followed by <Enter>. Thestatic text component now has the extra large font

size and is bold.

I tried it in Creator 2, but once I press enter, the style disappears from styleClass property field.

I also defined my new css as a style for the whole page, tried to type another style class for the text field, it disappears. Same thing in Netbeans 5.5.

What am I doing wrong? How can I use a styleClass from another css than the default in Creator 2? I 'm using the default Theme.

Thanks in advance.

Regards,

John.

[904 byte] By [jkost2] at [2007-11-26 11:20:39]
# 1

Hi,

styleClass definitely works but you must have missed a step in the Field Guide -- sorry I am unfamiliar with the guide -- must if you first define headingStyle in the stylesheet.css it will be selectable and not disappear! They talked about the initial dot because in your stylesheet.css you would have to add the definition in this manner:

.headingStyle {

font-size: 24 pt;

font-weight: bold;

}

/krys

CreatorTeam

3431603 at 2007-7-7 3:36:07 > top of Java-index,Development Tools,Java Tools...
# 2

The property editor for the "styleClass" property will reject values that do not correspond to a style class defined in any of the current page's style sheets. Is there a link component in the header that points to your stylesheet? If you open up the custom editor for the property (click on "..."), do you see the style class in the list of available style classes?

// Gregory

gjmurphy at 2007-7-7 3:36:07 > top of Java-index,Development Tools,Java Tools...
# 3
Thank you both. One question, why such restrictions? Why a styleClass starting with # isn't working and should start with a dot?Regards,John.
jkost2 at 2007-7-7 3:36:07 > top of Java-index,Development Tools,Java Tools...