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?

