A bit late, but for posterity, see this post, specifically this line:
component.setFont(component.getFont() if itemEnabled else component.getFont().deriveFont(Font.ITALIC))
1 Like
A bit late, but for posterity, see this post, specifically this line:
component.setFont(component.getFont() if itemEnabled else component.getFont().deriveFont(Font.ITALIC))