EstebanJBO
24 Jan 2012, 8:46 AM
Hi guys.
I just switched my project from eclipse to netbeans importing all the classes, everything works fine, but the default fonts of every label are different on netbeans, I had created a some personal properties for some Labels on the gxt-all file like this:
.gxt-Label-Tittles {
color: steelblue;
font-size: 18px;
font-style: normal;
font-weight: bold;
}
.gxt-Label-red {
color: Red;
font-style: italic;
}
As you guys can see, i dont define an specific font, i just modified some properties like the Color, and i just use this on tittle labels or some red labels that i need like this:
LabelField TittleLabelField = new LabelField("Familias - Clases - Atributos");
TittleLabelField.setStyleName("gxt-Label-Tittles");
add(TittleLabelField, new AbsoluteData(6, 6));
TittleLabelField.setSize("255px", "22px");
and the rest of the labels just like this:
LabelField VersionTypeLabel = new LabelField("Version de FITU para:");
add(VersionTypeLabel, new AbsoluteData(16, 31));
VersionTypeLabel.setSize("122px", "20px");
So the concrete question is: where or how should i modify the file to get all the GXT labels (The default ones and the personal ones) to be displayed whit an specific font without defining a style name for each one like the line in red?, where can i find the default font established for the labels and modify it?
Thx so much for your answers.
I just switched my project from eclipse to netbeans importing all the classes, everything works fine, but the default fonts of every label are different on netbeans, I had created a some personal properties for some Labels on the gxt-all file like this:
.gxt-Label-Tittles {
color: steelblue;
font-size: 18px;
font-style: normal;
font-weight: bold;
}
.gxt-Label-red {
color: Red;
font-style: italic;
}
As you guys can see, i dont define an specific font, i just modified some properties like the Color, and i just use this on tittle labels or some red labels that i need like this:
LabelField TittleLabelField = new LabelField("Familias - Clases - Atributos");
TittleLabelField.setStyleName("gxt-Label-Tittles");
add(TittleLabelField, new AbsoluteData(6, 6));
TittleLabelField.setSize("255px", "22px");
and the rest of the labels just like this:
LabelField VersionTypeLabel = new LabelField("Version de FITU para:");
add(VersionTypeLabel, new AbsoluteData(16, 31));
VersionTypeLabel.setSize("122px", "20px");
So the concrete question is: where or how should i modify the file to get all the GXT labels (The default ones and the personal ones) to be displayed whit an specific font without defining a style name for each one like the line in red?, where can i find the default font established for the labels and modify it?
Thx so much for your answers.