I made a Java program using Swing libraries. Now I would like to redirect my console outputs into a JFrame or JPanel.
Once you have your JFrame or JPanel, add a text field to it.
JTextArea is a good choice, because it's multiple lines.
Once it is added, you can .append('text'); to it instead of writing the System.out.print();
JFrame jFrame = new JFrame();
JTextArea jTextArea = new JTextArea();
jTextArea.append( "Hello World." );
jFrame.add( jTextArea );