I've created a JDBC application which retrieves data from a local Mysql database and prints results to textfields and the memo (blob) field contents to a textarea in a java form.
When using it in Windows XP, everything works fine.
But, using the same code, in Linux, it takes a long time to print text to the textarea ?
Can someone help ?
That's my relevant code :
txt1 = new TextArea("", 2, 15,
TextArea.SCROLLBARS_VERTICAL_ONLY);
txt1.setEditable(true);
getContentPane().add(txt1);
...................
while (result.next()) {
String text = result.getString(1);
list.add(text);
int x = list.getItemCount();
txt1.setText(list.getItem(x-1));
}
When using it in Windows XP, everything works fine.
But, using the same code, in Linux, it takes a long time to print text to the textarea ?
Can someone help ?
That's my relevant code :
txt1 = new TextArea("", 2, 15,
TextArea.SCROLLBARS_VERTICAL_ONLY);
txt1.setEditable(true);
getContentPane().add(txt1);
...................
while (result.next()) {
String text = result.getString(1);
list.add(text);
int x = list.getItemCount();
txt1.setText(list.getItem(x-1));
}