Hi Meenal,
Quote:
Originally Posted by Meenal Hi,
what u suggested did not help, so i changed the system font and now its looking better.But i wish there was some way to do it programatically.  |
Try with the following code:
Code:
ObjectChoiceField myChoice = new ObjectChoiceField( "Select: ",
new String[] { "No", "Yes" } ) {
public void paint(Graphics graphics) {
setFont(...);
super.paint(graphics);
}
}; Here i've called the
setFont() method of
ObjectChoiceField class, not for Graphics class. Hope this will Help!
Cheers,
ARIF