JTextField does not accepts input when the threads are being loaded

Hardware:

Celeron with 128 MB SD RAM

PIV HT with 256 MB DDR RAM

Software

JDK 1.5

Problem

I have built up a multi threaded Application.

The application has many menus.

And it loads each screen in its memory.

A individual thread is started for loading each panel of the menu in the background while user is given the main screenn.

If the user tried to make any change in the JTextField where the screen has loaded then it does not shows up.

I mean the character does not shows up

All other Swing UIs work perfectly well.

There are no Listeners attached to any JTextField.

and all other menus are exclusive.I eman they are not connected in any way.

This error does not show up if some specified number of the screen have been loaded.

I mean it sometimes crops up and sometimes not

In a Celeron it shows up but in Pentinum IV HT machine it shows sometimes

So now we have to wait for all the screens to be loaded in Celeron and then we can continue editing.

Can you help me in finding out the reason.

What can be the options

Is there any connection between The Number of threads and the JTextField

I had tried putting a key listener to one of the JTextField and show that the message from keyboard gets passed but it does not shows up on the screen

Thanks in advance

CSJakharia

[1444 byte] By [CSJakhariaa] at [2007-10-2 5:25:36]
# 1

well, Swing is not inherently thread-safe. You may get away with creating Swing components on different threads, but once they're shown, you have to access them from the AWT event thread via EventQueue.invokeLater/invokeAndWait. See here: http://java.sun.com/developer/technicalArticles/Threads/swing/

Jasprea at 2007-7-16 1:27:26 > top of Java-index,Desktop,Core GUI APIs...