Launching Programs like notepad - Java

This is a discussion on Launching Programs like notepad - Java ; Hi, Can someone give me some pointers on how to launch a program like notepad/textpad from a java program. I am printing a report into a .txt file and the program should automatically open it using a text editor. Thanks ...

+ Reply to Thread
Results 1 to 3 of 3

Launching Programs like notepad

  1. Default Launching Programs like notepad

    Hi,
    Can someone give me some pointers on how to launch a program like
    notepad/textpad from a java program. I am printing a report into
    a .txt file and the program should automatically open it using a text
    editor.
    Thanks in advance
    Vivek


  2. Default Re: Launching Programs like notepad

    slashman wrote:
    ...
    >Can someone give me some pointers on how to launch a program like
    >notepad/textpad from a java program.


    *

    >.. I am printing a report into
    >a .txt file and the program should automatically open it using a text
    >editor.


    For a 1.6+ application, see java.awt.Desktop.open(File).
    Make sure you check both of..
    - Dektop.isDesktopSupported()
    - Desktop.isSupported(Desktop.Action.OPEN)

    Note though, that a (J)TextArea (with some upgrades)
    is as capable as Notepad.

    * Another point is that adding a question mark (?) to
    questions, helps the reader.

    HTH

    --
    Andrew Thompson
    http://www.athompson.info/andrew/

    Message posted via JavaKB.com
    http://www.javakb.com/Uwe/Forums.asp...setup/200710/1


  3. Default Re: Launching Programs like notepad

    On Thu, 18 Oct 2007 09:07:52 -0000, slashman <viv_men@yahoo.com>
    wrote, quoted or indirectly quoted someone who said :

    >Can someone give me some pointers on how to launch a program like
    >notepad/textpad from a java program.


    see http://mindprod.com/jgloss/exec.html
    --
    Roedy Green Canadian Mind Products
    The Java Glossary
    http://mindprod.com

+ Reply to Thread

Similar Threads

  1. XML Notepad
    By Application Development in forum XML SOAP
    Replies: 0
    Last Post: 11-07-2007, 07:44 PM
  2. Re: xml notepad
    By Application Development in forum XML SOAP
    Replies: 0
    Last Post: 05-23-2007, 03:07 PM
  3. Font style missing in Adobe programs, presentin other programs and OS
    By Application Development in forum Adobe Photoshop
    Replies: 9
    Last Post: 12-08-2006, 08:41 PM
  4. Translating OO programs to procedural programs
    By Application Development in forum Object
    Replies: 4
    Last Post: 10-11-2006, 03:12 PM
  5. Notepad.exe
    By Application Development in forum Clarion
    Replies: 1
    Last Post: 06-30-2005, 07:27 AM