Das Problem ist: Wenn ich den Text von JTextArea
an die Konsole zu drucken:Warum die Konsole druckt Fehlertext der JTextArea (Swing)
System.out.println(textArea.toString());
I Ausgabe wie folgt erhalten:
javax.swing.JTextArea[,0,0,522x170,layout=javax.swing.plaf.basic.BasicTextUI$UpdateHandler,alignmentX=0.0,alignmentY=0.0,[email protected],flags=296,maximumSize=,minimumSize=,preferredSize=,caretColor=sun.swing.PrintColorUIResource[r=51,g=51,b=51],disabledTextColor=javax.swing.plaf.ColorUIResource[r=184,g=207,b=229],editable=true,margin=javax.swing.plaf.InsetsUIResource[top=0,left=0,bottom=0,right=0],selectedTextColor=sun.swing.PrintColorUIResource[r=51,g=51,b=51],selectionColor=javax.swing.plaf.ColorUIResource[r=184,g=207,b=229],colums=0,columWidth=0,rows=0,rowHeight=0,word=false,wrap=false]
Kann mir jemand helfen, dieses Problem zu beheben?
Danke @camickr. Es hat erfolgreich funktioniert. –