// first impport import java.awt.Desktop; import java.net.URL; // write (for netbeans button double click on it) private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { try{ Desktop.getDesktop().browse(new URL("https://www.pornhub.com/").toURI()); } catch(Exception e) {} }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter