browse file directory exception
This commit is contained in:
parent
38dad10048
commit
efcc61b578
@ -104,9 +104,13 @@ public class RecordWidget implements Drawable, Widget {
|
|||||||
if (Desktop.isDesktopSupported()) {
|
if (Desktop.isDesktopSupported()) {
|
||||||
Desktop desk = Desktop.getDesktop();
|
Desktop desk = Desktop.getDesktop();
|
||||||
try {
|
try {
|
||||||
desk.browse(record.getFile().toURI());
|
desk.browseFileDirectory(record.getFile());
|
||||||
} catch (IOException e) {
|
} catch (Exception e) {
|
||||||
throw new RuntimeException(e);
|
try {
|
||||||
|
desk.browse(record.getFile().toURI());
|
||||||
|
} catch (IOException ex) {
|
||||||
|
throw new RuntimeException(ex);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).dimensions(parent.getX() + getX() + 77,parent.getY() + getY() + 4 + 14, 38, 13).build();
|
}).dimensions(parent.getX() + getX() + 77,parent.getY() + getY() + 4 + 14, 38, 13).build();
|
||||||
|
Loading…
Reference in New Issue
Block a user