So i just made a thing where a static function outputs to System.out.println() and a textfield in the JFrame is going to display all of that. But it only shows 13 lines and then everything else is 'below it'. Is there a way to offset the lines without having to delete the first ones?
In case its needed: this is what i use
public static void Log(Object o){
System.out.println(o.toString());
targetField.setText(out.toString());
}
//different class (main) happens before any output from the Log() function:
final ByteArrayOutputStream out = new ByteArrayOutputStream();
final PrintStream ps = new PrintStream(out);
System.setOut(ps);
JTextPane console = new JTextPane();
Debug.init(console, out);
console.setBounds(0, 0, 400, 200);
frame.add(console);
etc...