How to convert file path with space to a URL
Many developers use the toURL() method of the File class to convert a File to a URL. This method however does not handle correctly escaping characters that are illegal in URL’s (such as spaces) and has...
View ArticleHow to launch default browser with Java 6
The Desktop class was added in Java 6 to handle launching associated applications on the native desktop. Following shows how to launch a browser to display a URI. URI uri = new...
View ArticleHow to launch default mail application with Java 6
The Desktop class was added in Java 6 to handle launching associated applications on the native desktop. Following shows how to launch the default mail application and open a mail composing window....
View ArticleHow to convert a File to a URL
Many developers use the toURL() method of the File class to convert a File to a URL. This method however does not handle correctly escaping characters that are illegal in URL’s (such as spaces) and has...
View Article