Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. import java.awt.Desktop;
  2. import java.io.File;
  3.  
  4. public class Test2 {
  5. public static void main(String[] args) throws Exception {
  6. File f = new File("c:\temp\test.bmp");
  7. Desktop dt = Desktop.getDesktop();
  8. dt.open(f);
  9. System.out.println("Done.");
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement