I am having a hard time understanding how to bold the text in my GUI program. The program shows the initial value of my calculator program to be 0.0 but I need to be able to make it bold and set it to 14 font. Is there any easy way to do this?
JPanel x = new JPanel(new BorderLayout());
JTextField z = new JTextField();
z.setEditable(false);
z.setText("0.0");
x.add(field, BorderLayout.NORTH);