Re: Anyone had any success with <Desktop>.open() in 1.6?
- From: IchBin <weconsul@xxxxxxx>
- Date: Sat, 04 Mar 2006 22:07:09 -0500
Lee Weiner wrote:
I've been playing around with the new Desktop class in 1.6. I've[snip code]
gotten the mail() and browse() methods to work as advertised, but
not the open() method. Example code:
import java.awt.Desktop;
import java.io.*;
public class DesktopTest
{
public static void main ( String[] args )
{
System.out.println( "Desktop supported?: " + Desktop.isDesktopSupported() );
Desktop desk = Desktop.getDesktop();
try
{
File file = new File( "d:\\basic.txt" );
System.out.println( "File exists?: " + file.exists() );
desk.open( file );
Try this..
Desktop.open( file );
--
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
.
- References:
- Anyone had any success with <Desktop>.open() in 1.6?
- From: Lee Weiner
- Anyone had any success with <Desktop>.open() in 1.6?
- Prev by Date: Re: Version history
- Next by Date: refreshing a window
- Previous by thread: Anyone had any success with <Desktop>.open() in 1.6?
- Next by thread: refreshing a window
- Index(es):