Package se.datadosen.jalbum
Class MyDesktop
java.lang.Object
se.datadosen.jalbum.MyDesktop
Wrapper around Java's Desktop class, fixing stuff that isn't properly implemented there
-
Method Summary
Modifier and TypeMethodDescriptionvoid
browseFileDirectory
(File file) Opens a folder containing thefile
and selects it in a default system file manager.static MyDesktop
-
Method Details
-
getDesktop
-
browseFileDirectory
Opens a folder containing thefile
and selects it in a default system file manager.- Parameters:
file
- the file- Throws:
SecurityException
- If a security manager exists and itsSecurityManager.checkRead(java.lang.String)
method denies read access to the file or to its parent, or it denies theAWTPermission("showWindowWithoutWarningBanner")
permission, or the calling thread is not allowed to create a subprocessUnsupportedOperationException
- if the current platform does not support theDesktop.Action.BROWSE_FILE_DIR
actionNullPointerException
- iffile
isnull
IllegalArgumentException
- if the specified file or its parent doesn't exist- Since:
- 9
-