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 / GUI / January 2007

Tip: Looking for answers? Try searching our database.

How to access another swing application's main window ?

Thread view: 
nerdy - 29 Jan 2007 11:23 GMT
I have been using an Java Swing app. It is a third party application,
which I don't have control over. I would like write a small java
application, using some swing test frame works to access this
application window and autoamte some of the stuff that I have been
doing by hand. However, all the test suits expect that I fire up the
application inside my test code. For this case, this appication runs
on its own, updates itself if/when needed, and fire up the
application's main method, which I don't want to interfere.

Is it possible to get access to main window of that application
somehow and use that that "handle" (or whatever it is) to get
components of the application window and do some typing/clicking ops
there ?

Thanks in advance
Andrew Thompson - 29 Jan 2007 11:34 GMT
> I have been using an Java Swing app. It is a third party application,

What third part app. (specifically)?
Do the suppliers have a site?
What is the URL?

> ..Is it possible to get access to main window of
> that application somehow ..?

It might be possible* to achieve what you
need, but it would be helpful to have a lot
more specific details on the app. itself.

* JUnit?  java.awt.Robot?

Andrew T.
Thomas Fritsch - 29 Jan 2007 11:53 GMT
>>I have been using an Java Swing app. It is a third party application,
>
[quoted text clipped - 10 lines]
>
> * JUnit?  java.awt.Robot?

or to name some more:
  jfcUnit  http://jfcunit.sourceforge.net/
  QF-Test  http://www.qfs.de/en/qftest/

Signature

Thomas



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.