maybe I'm wrong, but I think the Font class only has a Bold, simple, but you can change it after the number
setFont(new Font("Dialog", Font.BOLD, 12)); setFont(new Font("Dialog", Font.plain, 27));
but in java.awt.font.TextAttribute class
you have WEIGHT_BOLD and WEIGHT_SEMIBOLD ...
csWael
source share