How to take screenshot and attach into new email message in Java w/ Netbeans

I'm currently using an ActionListener to create a new email with the user's default email client. I'd like to have the function take a screenshot and attach that or embed that into the email. Here's what I'm doing right now

EmailItem.addActionListener(new ActionListener() {


public void actionPerformed(ActionEvent ae) {

try {

URI uriMailTo = new URI("");

Desktop desktop;

desktop = Desktop.getDesktop();


} catch (Exception e) {}



Read More »

By: StackOverFlow - Wednesday, 14 March

Related Posts