I have a console, JTextField, into which String out is output, when I need to add text, I add to this variable \ n and the required text, then again I output out to JTextField.
String out=""; JTextField console = new JTextField(): out=out+"\n Пример"; console.setText(out); I need some lines to be aligned to the right, and others to the left. And preferably, they had a different color. Any ideas will do, even with a complete reworking of the output system. Type:
Так И вот так................