import java.awt.*;
      import java.io.IOException;
      import java.net.URI;
      import java.net.URISyntaxException;
      
      try {
        Desktop.getDesktop().browse(new URI(url));
      } catch (IOException | URISyntaxException e1) {
        e1.printStackTrace();
      }

      Java language logoopen URL in desktop

      Java Public Recipes

      Shortcut: awt.url.open

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.