GeezerVison is showing docs.oracle.com — Desktop (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
- Detail:
- Field |
- Constr |
- Method
-
-
Nested Class Summary
Nested Classes
| Modifier and Type |
Class |
Description |
static class |
Desktop.Action |
Represents an action type.
|
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
| Modifier and Type |
Method |
Description |
void |
browse(URI uri) |
Launches the default browser to display a URI.
|
void |
edit(File file) |
Launches the associated editor application and opens a file for
editing.
|
static Desktop |
getDesktop() |
Returns the Desktop instance of the current
browser context.
|
static boolean |
isDesktopSupported() |
Tests whether this class is supported on the current platform.
|
boolean |
isSupported(Desktop.Action action) |
Tests whether an action is supported on the current platform.
|
void |
mail() |
Launches the mail composing window of the user default mail
client.
|
void |
mail(URI mailtoURI) |
Launches the mail composing window of the user default mail
client, filling the message fields specified by a mailto: URI.
|
void |
open(File file) |
Launches the associated application to open the file.
|
void |
print(File file) |
Prints a file with the native desktop printing facility, using
the associated application's print command.
|
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Java™ Platform Standard Ed. 8
- Detail:
- Field |
- Constr |
- Method
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|