Results 1 to 1 of 1
-
Invoking the system text editor on autoexec.bat
Java Code:import org.eclipse.swt.program.Program; import org.eclipse.swt.widgets.Display; public class Snippet30 { public static void main(String[] args) { Display display = new Display(); Program p = Program.findProgram(".txt"); if (p != null) p.execute("c:\\autoexec.bat"); display.dispose(); } }"The sole cause of man’s unhappiness is that he does not know how to stay quietly in his room." - Blaise Pascal
Similar Threads
-
Drag out text editor pane
By p4ndaman in forum EclipseReplies: 3Last Post: 07-21-2008, 04:19 PM -
SWT Text Editor Demo
By Java Tip in forum SWTReplies: 0Last Post: 07-11-2008, 04:35 PM -
SWT Text Editor
By Java Tip in forum SWTReplies: 0Last Post: 07-07-2008, 04:43 PM -
how to post a long text in an editor
By bachtoutou in forum New To JavaReplies: 3Last Post: 06-06-2008, 02:00 AM -
Problem in Text Editor
By mustahsan4u in forum New To JavaReplies: 2Last Post: 03-26-2008, 02:34 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks