java - How do I programmically resize and change possition of a window -


how resize (and change possition) of window of other application programically? code java, , want resize windows, not created jvm. i'm using windows xp. change other properties of windows if there more options.

additional information after comments:

q: why want that? a: windows lacks feature move window across multiple displays fast. have tried winsplit revolution 9.02? has great features move/position window few button presses. don't need grab mouse @ all.

the way windows not own in pure java java.awt.robot class. not offer useful api goal, screenshot, analize results, , position, press, move , release mouse accordingly - thus, same human user do.

if want more, have system-specific. think both windows api , x protocol (ant x client libraries) offer @ least ability informations other program windows, don't know changing them. (i suppose mac os has such capabilities, too.)

this mean writing @ least basics of functionality in c (or other language access such library) , use jni access java. use jni-wrapping library jna (java native access) leave out jni step.


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -