How to display data from one object in JTextArea of another object?
I have one class named handler and this class process the http request comming from the browser and i want to display the http headers of the request in JTextArea of another class named HttpHeadersFrame! This is what i have tried 

     public class Handler
     {
         HttpHeadersFrame headersFrame; //This frame contains JTextArea component
         private Request request = null;
         public String requestMessage;

         public void processRequest()
         {
            headersFrame = new HttpHeadersFrame();
            requestMessage = request.toString(System.getProperty("line.separator"));
            headersFrame.getRequestTextArea().append(requestMessage);
         }
     }

     public class HttpHeadersFrame extends javax.swing.JFrame 
     {
        private javax.swing.JTextArea requestTextArea;
        public HttpHeadersFrame() 
        {
           initComponents();
           setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
        }
        public JTextArea getRequestTextArea()
        {
           return requestTextArea;
        }
     }
When i run the proxy i don't get any message in JTextArea! Any help would be appreciated
How to display data from one object in JTextArea of another object?
===

I have one class named handler and this class process the http request comming from the browser and i want to display the http headers of the request in JTextArea of another class named HttpHeadersFrame! This is what i have tried 

     public class Handler
     {
         HttpHeadersFrame headersFrame; //This frame contains JTextArea component
         private Request request = null;
         public String requestMessage;

         public void processRequest()
         {
            headersFrame = new HttpHeadersFrame();
            requestMessage = request.toString(System.getProperty("line.separator"));
            headersFrame.getRequestTextArea().append(requestMessage);
         }
     }

     public class HttpHeadersFrame extends javax.swing.JFrame 
     {
        private javax.swing.JTextArea requestTextArea;
        public HttpHeadersFrame() 
        {
           initComponents();
           setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
        }
        public JTextArea getRequestTextArea()
        {
           return requestTextArea;
        }
     }
When i run the proxy i don't get any message in JTextArea! Any help would be appreciated