Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Place an external application window in a concrete place

Status
Not open for further replies.

HenryChinaski

Programmer
Mar 9, 2004
6
ES
I've made a Swing Interface for an application, but now I need to open an external application and put it in some coords in the screen (i.e. open the iexplorer in 500,500).

Java brings some "Runtime" methods to run other programs in new threads, but they don't provide the funcionality to place the window.

There should be a solution using a DLL or something, but I'm completely lost and I don't know which method calls to use (and if works, it would be a good solution using the dll and jni).

So, anyone knows the methods or maybe a java solution?

Thanks in advance
 
your java program can use ie to open a html with javascript like this
<html>
<head>
<META http-equiv=REFRESH content="5;URL=http://www.yahoo.com">
<script lang="JavaSCript">
function mf1()
{
self.moveTo(500,500);
}
</script>
</head>
<body onLoad = "mf1()">
</body>
</html>
delete the line with meta tag if you don't need redirect
The page with Javascript can be stored on web, use Java to call explorer
 
that works properly with the iexplorer, but the application I need to open is some kind like netmeeting and it doesn't give any javascript support or any command line options to place it...

but thanks anyway!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top