Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / September 2007

Tip: Looking for answers? Try searching our database.

Need help in Swing multithreading

Thread view: 
swapnil.kale@gmail.com - 04 Sep 2007 19:33 GMT
Hi,
I'm stuck in a strange problem in Swing multithreading. Any help would
be appreciated.

In my application / project, <a migrated code through tool> a thread
which is the "main grid" window runs continuously to listen to changes
for the application. The other window whcih is launched through the
main grid creates an alert due to change in the data on the window.
This thread now waits for the next input.
                       The alert created gets consumed by the main
grid and appropriate action is taken. After this it again waits for
the next event to occur, but once this is done, the main grid gains
the focus as the code completes last in the main grid and not at the
other window where it is expecting the input.

I hope i'm making it explicit.  Please suggest me inputs on how can i
regain the focus on the window expecting the next input.

Thanks in advance for the help.

Regards,
Swapnil
Knute Johnson - 05 Sep 2007 06:18 GMT
> Hi,
> I'm stuck in a strange problem in Swing multithreading. Any help would
[quoted text clipped - 18 lines]
> Regards,
> Swapnil

Component.requestFocusInWindow()

Signature

Knute Johnson
email s/nospam/knute/

Roedy Green - 05 Sep 2007 06:29 GMT
>I hope i'm making it explicit.  Please suggest me inputs on how can i
>regain the focus on the window expecting the next input.

You are being too vague.  All I can do is point you to
http://mindprod.com/jgloss/swingthreads.html for generic help.
Signature

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.