English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

What i want to do is to capture a window and select a section to, send it to a printer (yes, the windows as an image or something similar). Is this possible? could the java Toolkit be the answer? or how can i accomplish this?

2006-12-15 03:13:18 · 3 answers · asked by puki el pagano 5 in Computers & Internet Programming & Design

I'm trying to automatically (not by pressing the print Screen button but codifiyng) capture a section of a window (perhaps launched by another application) that displays graphics, is this possible to do with java?

2006-12-15 03:24:34 · update #1

3 answers

You can accomplish what you want using the SWT,
the Standard Widget Toolkit as used in Eclipse.

The SWT uses a different set of native libraries than the AWT
which are targeted to offering extended capabilities rather than
the "lower common denominator" capabilities found in the AWT.

I have used the SWT in the past for doing screen capture, it
works well but the programming model is similar to, say
Windows GDI programming. I used to program in Delphi
before so I was used to it. It might be a little unusual if you
have only programmed in Java before.

2006-12-18 18:05:40 · answer #1 · answered by Pablo D 3 · 0 0

Java somewhat has 2 installs. the only you'll locate on maximum pcs is the Java RE which recommend Java Runtime surroundings. with a view to application in java you want the SDK platforms progression kit. The Java.exe calls for a classification record containing the compiled java code to execute. It itself is the shielding surroundings in which java courses are run, it captures programming blunders with a view to inform the programmer of his fault particularly of purely blue screening. also the compiled code for java isn't device code yet particularly a platform independant set of instructions which the java application translates into instructions for even with workstation it truly is operating on. that is why java works on any workstation and also why your java.exe isn't operating. No code, no go. wish this replaced into useful

2016-11-26 21:04:30 · answer #2 · answered by Anonymous · 0 0

Knock the dust off of your "PrintScreen" Button....cause you can use that to capture EXACTLY what is on your screen...or just one window when you hold the ALT button down at the same time...

2006-12-15 03:18:26 · answer #3 · answered by troubled1367 6 · 0 0

fedest.com, questions and answers