printing data in an application

hey Guys

I have a label which i set as follows

dataLabal.setText(data);

where data is a String read from the serial port every 0.5 seconds. I put that Label in my application like this

private JPanel getJContentPane() {

if (jContentPane == null) {

jContentPane = new JPanel();

jContentPane.setLayout(new FlowLayout()); jContentPane.add(dataLabel);

}

return jContentPane;

}

My problem is that when ever there is new data, the old one is deleted from the application. I want my data to be written as follows in the application:

data1 data2 data3

data4 data5 data6

data7 data8 data9

where data1 is the first data to be read and data2 the second and so on

Can somebody give me a hand?

[784 byte] By [musiigea] at [2007-11-27 8:45:29]
# 1
Quit multi-posting: http://forum.java.sun.com/thread.jspa?threadID=5188277I said:a) In the future...b) and then gave you the answer to your question
camickra at 2007-7-12 20:46:39 > top of Java-index,Desktop,Core GUI APIs...