문제는 : 나는 JTextArea
에서 콘솔에 텍스트를 인쇄 할 때 가 :왜 JTextArea에 (스윙)에서 콘솔 인쇄 오류 텍스트
System.out.println(textArea.toString());
을 나는이 같은 출력을 얻을 :
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]
누구든지이 문제를 해결할 수 있습니까?
감사합니다. @camickr. 그것은 성공적으로 작동했습니다. –