Hello dear Java community,
i have a little problem again. So i have simply actionperformed for my buttons and want to write text on the TextArea which i have in my Java swing App. It is working but when i want to get some parts of my text a color then this color code do not works.
Please if someone knows how to solve this problem i will be very grateful.:-(
Thanks!!!!
i have a little problem again. So i have simply actionperformed for my buttons and want to write text on the TextArea which i have in my Java swing App. It is working but when i want to get some parts of my text a color then this color code do not works.
Please if someone knows how to solve this problem i will be very grateful.:-(
Thanks!!!!
Java:
addBt.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg0) {
String text = "\t" + "Information " + " \n" + "Password is: "
+ " " + "" + "5555" + " " + "/ " + "Username is:"
+ " " + " " + "ehmaster" + "" + "\n";
fireDetailEvent(new DetailEvent(this, text));
}
});