Click to See Complete Forum and Search --> : windows display configuration
ngleeyean
November 9th, 2001, 02:35 AM
how to write a java code in setting up the windows display configuration??
when we right click in the desktop and select the properties , the display properties dialog box will pop up .. in the tab called "web", we can set to show the web content on the active desktop. so, now i need to write a setup code to run and automatically execute the setting.
please help me..
thanks..
dlorde
November 9th, 2001, 12:10 PM
You can't do this in Java. Java is platform independent; from a programmer's POV it doesn't know anything in particular about Windows, Mac, or Unix operating systems.
You can use JNI (Java Native Interface) to call C or C++ functions that can do this for you.
See http://java.sun.com/docs/books/tutorial/native1.1/index.html
Dave
poochi
November 9th, 2001, 12:36 PM
I dont know whether you can change the properties or not. But you can retrieve those
information by using "Toolkit.getDesktopProperty()" method..
Look at the following site for more information.
http://java.sun.com/products/jfc/tsc/articles/merlin/windows/w2k_props.html
dlorde
November 10th, 2001, 01:10 PM
Erk! Deja-vu... yes, I was wrong. Sorry, I forgot all about Toolkit!
Dave
ngleeyean
November 12th, 2001, 02:02 AM
how can i use the setDesktopProperty() method??
since it is a protected method in java.awt.Toolkit .
anyone can help me out??
codeguru.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved.