I have a font variable
static public Font bold_13 = new Font("Arial", Font.BOLD, 13);
which is set to text. Now based on some condition I need to change the style of the font.
One possible solution which i found was
field.setFont(field.getFont().deriveFont(Font.ITALIC));
I cant use the same in my application because I dont know the field when i am changing the style. So I cant use like field.setFont
!