how can I manipulate windows using Java?

G

gino

Dear folks,

Is there a way for Java to manipulate other/non-java windows on Windows XP
and Redhat Linux? for instance, hide a window, show a window, etc.

Thank you,

-Gino
 
C

Chris Smith

gino said:
Is there a way for Java to manipulate other/non-java windows on Windows XP
and Redhat Linux? for instance, hide a window, show a window, etc.

No. You'll need to use some native code for this. You can use JNI to
call the native code from Java.

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
R

Roedy Green

Is there a way for Java to manipulate other/non-java windows on Windows XP
and Redhat Linux? for instance, hide a window, show a window, etc.

the only time java will have built-in support for an operation is if
it makes sense on ALL operating systems. If it is something you can
only do on Windows or do in completely different ways on Windows and
Linux then you won't find it. You will have to write some
platform-specific code in C and some JNI glue.

See http://mindprod.com/jgloss/jni.html

You can see some examples of such code at
http://mindprod.com/products.html#MOUSE
http://mindprod.com/products.html#PENTIUM
http://mindprod.com/products.html#FILETIMES
http://mindprod.com/jgloss/setclock.html
 
T

Thomas Weidenfeller

gino said:
Is there a way for Java to manipulate other/non-java windows on Windows XP
and Redhat Linux? for instance, hide a window, show a window, etc.

Why don't you work through the tutorials on the Sun Java web site? That
way you would get an overview of the capabilities of the language.

And please consider posting your beginner questions to
comp.lang.java.help instead.

Follow-up set.

/Thomas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top