Explorar el Código

debug onfo also printed to java console

Kolja Strohm hace 6 años
padre
commit
91b11370d5
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/view/MainView.java

+ 3 - 1
src/view/MainView.java

@@ -142,11 +142,13 @@ public class MainView {
 	    JTextArea info = new JTextArea();
 	    info.setEditable( false );
 	    info.setFont( new Font( Font.MONOSPACED, Font.PLAIN, 11 ) );
-	    info.setText( debugInfo() );
+	    String infoS = debugInfo();
+	    info.setText( infoS );
 	    JScrollPane view = new JScrollPane( info );
         debugFrame.add( view );
         debugFrame.setSize( frame.getWidth(), frame.getHeight() );
 	    debugFrame.setVisible( true );
+	    System.out.println( infoS );
 	}
 
 	public MainView( ElkNode graph )