How would I go about achieving the effect of JTextArea with JLabel?
I want the output to be displayed every time the button is clicked on the next line down instead of replacing what text is already there, i.e. like an append method for JLabel?
I just want it to follow the same behavior as JTextArea.append.
Also I want to add hyperlink to each line.
You can do that as follows,
label.setText(label.getText() + "text u want to append");
on each event.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With