java jtextfield text bold code example Example: java jtextfield text bold textfield.setFont(textfield.getFont().deriveFont(Font.BOLD, 14f));