I was using a TextField component to serve the function of a status bar - to display messages to the user. No problems. Then I modified the TextField to a JTextfield, everything else is the same, and now I am having problems with displaying messages. The last message always displays, but none of the others previous to it do. It seems like some sort of a problem with repainting. Are there any known issues with JTextFields when it comes to repainting. This is basically the method that I am using. sField is the JTextField component.
public void setStatusBar(
String text)
{
sField.setText(text);
}
I have a bunch of these statements in my main class. None of but the last one get displayed when using a JTextField.
myParent.setStatusBar("Connected to " + dbInstance + ".");
Thanks for your assistance.
Wasif Akbar