04-26-2010 08:50 AM
I am using JDE 4.7 plugin in eclipse.
In my application I am using a custom field which as to draw some text.
Currently it is drawing the text in plain font. But I don't know how to draw bold text.
I have overriden the paint method and I am using the graphics.drawText method.
How do I draw the text in bold format?
Thanks for your help in advance.
04-26-2010 09:34 AM
Look at the graphics.getFont() and graphics.setFont() methods, as well as font.derive(). Before you call graphics.drawText(), you can do something like this: