Is there a way to add a JLabel to JtextArea? cause I try the add
but it didnt work and set it to visible true, is it allowed to add a JLabel inside the JTextArea? through append?
Here is my current code that didnt work
jta = new JTextArea();
jta.setEditable(false);
jta.setLineWrap(true);
jta.setWrapStyleWord(true);
jta.setFont(new Font("calibri", Font.PLAIN,16));
jlArray = new JLabel("radsjhkaljk sadf");
jta.add(jlArray);
jta.setVisible(true);
jspTextField = new JScrollPane(jta);
Can I append the JLabel inside the JTextArea each time a message is added?