Screenshot « Development « Java Swing Q&A





1. Capturing heavyweight java components?    stackoverflow.com

I have a desktop application having heavyweight components (JxBrowser) in a JFrame. How can I make a snapshot from the GUI and save it to for example a png file? Note: ...

2. Screenshot of gui, choose where to save question    stackoverflow.com

I have a program that takes a screenshot of my gui. It automatically saves the .gif file to the eclipse project directory. What I would like is to have it asking ...

3. java screenShot issue    stackoverflow.com

I have a small issue that I don’t really know how to solve, basically I want to take a screenshot (using the "Robot" class) of my desktop excluding the actual program ...

4. Is there a efficient way to take a screenshot in Java?    coderanch.com

Hi guys. I am planning to write a "Terminal Service" or "VNC" pure Java program (no native code), that is Plataform-independent and efficient. So, I was planning initially to take screenshots of the screen, about 3 a second minimum. I wrote this code (below), but each screenshot takes about 300ms to be taken, on a 900MHz Athlon machine, 1024x768x32Bit resolution. I ...

5. GUI Won't Update Before Screenshot    coderanch.com

saveButton.addActionListener ( new ActionListener() { public void actionPerformed(ActionEvent event) { sig1.setVisible(true); sig2.setVisible(true); sig3.setVisible(true); saveButton.setVisible(false); EvalRunnable evalRunnable = new EvalRunnable(); Thread t = new Thread(evalRunnable); SwingUtilities.invokeLater(evalRunnable); sig1.setVisible(false); sig2.setVisible(false); sig3.setVisible(false); saveButton.setVisible(true); } } ); public class EvalRunnable implements Runnable { public void run() { try { Toolkit toolkit = Toolkit.getDefaultToolkit(); Dimension screenSize = toolkit.getScreenSize(); Rectangle screenRect = new Rectangle(screenSize); Robot robot = new ...