Desktop: mail() : Desktop « java.awt « Java by API






Desktop: mail()

 
import java.awt.Desktop;

public class Main {
  public static void main(String[] a)throws Exception {
      Desktop desktop = null;
      if (Desktop.isDesktopSupported()) {
        desktop = Desktop.getDesktop();
      }

       desktop.mail();
  }
}

   
  








Related examples in the same category

1.Desktop: browse(URI uri)
2.Desktop: edit(File file)
3.Desktop: getDesktop()
4.Desktop: isDesktopSupported()
5.Desktop: open(File file)
6.Desktop: print(File file)