i have a program running with lot of system.out.println statements.. i want to display this in a javaframe...can anyone tel me the steps to go abt it

The following code is used for creating java frame.

import java.awt.*;
import java.awt.event.*;
class test extends Frame implements WindowListener{
             setTitle("Java Frame");

      public void windowOpened(WindowEvent e){}

      public void windowClosing(WindowEvent e){

      public void windowClosed(WindowEvent e){}

      public void windowIconified(WindowEvent e){}

      public void windowDeiconified(WindowEvent e){}

      public void windowActivated(WindowEvent e){}

      public void windowDeactivated(WindowEvent e){}

      public static void main(String ars[]){
             test t = new test();

this code is used to print the string in the frame

  Graphics g;
variable_name -> print string
x -> x axis in the frame
y -> y axis in the frame

this code is used to print the string in the frame

i see..

commented: This adds absolutely no value to the thread. -1