try the pack().
hope this helps
Sybille
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 15, 2001 2:58 PM
Subject: JTextField update ?
In wrote a Java 2 application (in fact a JPanel) collection some info from
CD's (title, path, zippath, filename) and record this info into a MS Access
database. No problem ...
Afterwards I changed the application by adding some feedback (nb dirs/files)
by adding a Thread
try {
engine.sleep(1000);
catch (...) { }
tfCount.setText(...);
this.repaint();
but the JP�nel is not repainted ...
The only way to get feedback is replacing the "repaint"-statement by
Graphics g = this.getGraphics();
this.paint(g);
Is this the right way - or - how can repaint the JPanel by the
"repaint"-statement ?
TIA
Willy
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing