windows tricks Windows XP Problems, Errors, Updates, Virus Removal, Hacking Tips, Hardware Problems, Software Problems,System Upgrading, Port Numbers, Microsoft 2003 & 2008, Red Hat Server, Fedora 9, Registry Tweaks,Networking Concepts, Blogging Tips, Domains Registration Search Engine Optimization,Softwares.
Wednesday, February 17, 2010
Java Tips: How to open a file with default editor from Java applications
For a long time we couldn't easily use Java applications to open the default (for the operating system) editor application (like notepad in Windows Operating Systems for text files). Starting with JDK 1.6 you can use the java.awt.Desktop class to easily launch the default editor (of your operating system) from Java applications. Read below for more details and the code.
Labels:
JAVA
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment