repose version 2.0 i would like to display the value of array on my text field
<ol>
<li>I have to repost my question again the first one is confusing.</li>
<li>i have problem displaying the the value of j on my text field .</li>
<li>only 1 value is display on the textfield.</li>
<li>i want to display all six of them . </li>
<li>While on the "System.out.print output all the six element is displayed.</li>
<li><p>thank you in advance for any input.</p>

<pre><code>import java.util.Collections;
import java.util.ArrayList;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;

public class SwingCounter extends JFrame implements ActionListener {

// use Swing's JTextField instead of AWT's TextField
private JTextField tfCount;
private int counterValue = 0, numbers=0, j=0;

public SwingCounter () {

// retrieve the content pane of the top-level container JFrame
Container cp = getContentPane();
// all operations done on the content pane
cp.setLayout(new FlowLayout());

cp.add(new JLabel("Counter"));
tfCount = new JTextField(10);
tfCount.setEditable(true);
tfCount.setText(numbers + "");
tfCount.setText(j + "");
cp.add(tfCount);

JButton btnCount = new JButton("Count");
cp.add(btnCount);
btnCount.addActionListener(this);

// exit program if close-window button clicks
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

// set initial window size
setSize(280,80);
// location in screen
setLocation(400,200);
// set this JFrame's title
setTitle("Swing Counter");
setVisible(true);     // Show it
}
public void actionPerformed(ActionEvent evt) {

//define ArrayList to hold Integer objects
ArrayList&lt;Integer&gt; numbers = new ArrayList&lt;Integer&gt;();
for(int i = 0; i &lt; 45; i++)
{
 numbers.add(i+1);
 }

 Collections.shuffle(numbers);


System.out.print("This week's lottery numbers are: ");
for(int j =0; j &lt; 6; j++)



{
System.out.print(numbers.get(j) + " ");
tfCount.setText(numbers.get(j) + " ");


}



}
}
</code></pre></li>
</ol>
