Outputting relevant input/output to a GUI, having received input in the console
<p>I need to display some relevant information (like an introduction, yes/no questions and other questions) to a user via a gui, who then enters their response into the console.  However, I cannot for the life of me think of or find a way to do this.  How can I run the GUI but still allow input into the console?  Here is some cut down code I have that shows what I'm trying to do. I'm doing this from a pps frame class that handles the container stuff. I just need to add buttons, text fields and later on action events.</p>

<pre><code>public class gui extends XFrame
{
    private JTextField[] textFieldsUneditable;

        public gui()
        {
            super();
            textFieldsUneditable = new JTextField[10];
            for(int i=0; i&lt;textFieldsUneditable.length; i++)
            {
                textFieldsUneditable[i] = new JTextField(42);
                textFieldsUneditable[i].setEditable(false);
                add(textFieldsUneditable[i]);
            }

            revalidate();
            repaint();
        }

        public void paintComponent(Graphics g)
        {
            super.paintComponent(g);
            // code code code
        }
</code></pre>

<p>But what I have is other methods, of which I want to run and then output into these uneditable JTextFields using setText in the GUI after the user has responded in the console. I hope that makes sense!</p>
