📄 desktop.html
字号:
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="open(java.io.File)"><!-- --></A><H3>
open</H3>
<PRE>
public static void <B>open</B>(java.io.File file) throws <A HREF="../../../../org/jdesktop/jdic/desktop/DesktopException.html" title="class in org.jdesktop.jdic.desktop">DesktopException</A></PRE>
<DL>
<DD>Launches the associated application to open a file <p> If the specified file is a directory, the file manager of the current platform is launched to open it.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>file</CODE> - the given file.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/desktop/DesktopException.html" title="class in org.jdesktop.jdic.desktop">DesktopException</A></CODE> - If the specified file has no associated application, or the associated application fails to be launched.</DL>
</DD>
</DL>
<HR>
<A NAME="isPrintable(java.io.File)"><!-- --></A><H3>
isPrintable</H3>
<PRE>
public static boolean <B>isPrintable</B>(java.io.File file)</PRE>
<DL>
<DD>Tests whether the given file could be printed.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>file</CODE> - the given file.<DT><B>Returns:</B><DD><code>true</code> if the given file is valid and is printable; <code>false</code> otherwise.</DL>
</DD>
</DL>
<HR>
<A NAME="print(java.io.File)"><!-- --></A><H3>
print</H3>
<PRE>
public static void <B>print</B>(java.io.File file) throws <A HREF="../../../../org/jdesktop/jdic/desktop/DesktopException.html" title="class in org.jdesktop.jdic.desktop">DesktopException</A></PRE>
<DL>
<DD>Prints the given file.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>file</CODE> - the given file.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/desktop/DesktopException.html" title="class in org.jdesktop.jdic.desktop">DesktopException</A></CODE> - if the given file is not valid, or the given file is not printable, or the given file fails to be printed.</DL>
</DD>
</DL>
<HR>
<A NAME="isEditable(java.io.File)"><!-- --></A><H3>
isEditable</H3>
<PRE>
public static boolean <B>isEditable</B>(java.io.File file)</PRE>
<DL>
<DD>Tests whether the given file is editable.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>file</CODE> - the given file.<DT><B>Returns:</B><DD><code>true</code> if the given file is valid and has an associated editor; <code>false</code> otherwise.</DL>
</DD>
</DL>
<HR>
<A NAME="edit(java.io.File)"><!-- --></A><H3>
edit</H3>
<PRE>
public static void <B>edit</B>(java.io.File file) throws <A HREF="../../../../org/jdesktop/jdic/desktop/DesktopException.html" title="class in org.jdesktop.jdic.desktop">DesktopException</A></PRE>
<DL>
<DD>Launches the associated editor to edit the given file.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>file</CODE> - the given file.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/desktop/DesktopException.html" title="class in org.jdesktop.jdic.desktop">DesktopException</A></CODE> - if the given file is not valid, or the given file is not editable, or the given editor fails to be launched.</DL>
</DD>
</DL>
<HR>
<A NAME="browse(java.net.URL)"><!-- --></A><H3>
browse</H3>
<PRE>
public static void <B>browse</B>(java.net.URL url) throws <A HREF="../../../../org/jdesktop/jdic/desktop/DesktopException.html" title="class in org.jdesktop.jdic.desktop">DesktopException</A></PRE>
<DL>
<DD>Launches the system default browser to show the given URL.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>url</CODE> - the given URL.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/desktop/DesktopException.html" title="class in org.jdesktop.jdic.desktop">DesktopException</A></CODE> - if the given url is null, or the system default browser is not found, or the system browser fails to be launched.</DL>
</DD>
</DL>
<HR>
<A NAME="mail()"><!-- --></A><H3>
mail</H3>
<PRE>
public static void <B>mail</B>() throws <A HREF="../../../../org/jdesktop/jdic/desktop/DesktopException.html" title="class in org.jdesktop.jdic.desktop">DesktopException</A></PRE>
<DL>
<DD>Launches the message compose window of the default mailer.
<P>
<DD><DL>
<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/desktop/DesktopException.html" title="class in org.jdesktop.jdic.desktop">DesktopException</A></CODE> - if the system default mailer was not found, or it fails to be launched.</DL>
</DD>
</DL>
<HR>
<A NAME="mail(org.jdesktop.jdic.desktop.Message)"><!-- --></A><H3>
mail</H3>
<PRE>
public static void <B>mail</B>(<A HREF="../../../../org/jdesktop/jdic/desktop/Message.html" title="class in org.jdesktop.jdic.desktop">Message</A> msg) throws <A HREF="../../../../org/jdesktop/jdic/desktop/DesktopException.html" title="class in org.jdesktop.jdic.desktop">DesktopException</A></PRE>
<DL>
<DD>Launches the message compose window of the default mailer, and fills in the message fields with the field values of the given <code>Message </code> object.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>msg</CODE> - the constructed <code>Message</code> object.<DT><B>Throws:</B><DD><CODE><A HREF="../../../../org/jdesktop/jdic/desktop/DesktopException.html" title="class in org.jdesktop.jdic.desktop">DesktopException</A></CODE> - if the given message object is null, or the system default mailer was not found, or it fails to be launched.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Desktop.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
JDIC API V2006 Release 0308</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
PREV CLASS
<A HREF="../../../../org/jdesktop/jdic/desktop/Message.html" title="class in org.jdesktop.jdic.desktop"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html" target="_top"><B>FRAMES</B></A>
<A HREF="Desktop.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<font size=-1>For more information and documentation on JDIC, see <a href=https://jdic.dev.java.net>JDIC website</a>. <p>That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, working code examples, license terms and bug report information. <p>Copyright (c) 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to <a href= https://jdic.dev.java.net/source/browse/jdic/src/COPYING>license terms</a>. </font>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -