From 566527e4a137e9e5f53d4f473dc3fca4e2e74e14 Mon Sep 17 00:00:00 2001 From: Nico Mexis Date: Sun, 1 Aug 2021 12:09:14 +0200 Subject: [PATCH] Fix file drop that I accidentally broke... --- .../java/the/bytecode/club/bytecodeviewer/util/FileDrop.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/util/FileDrop.java b/src/main/java/the/bytecode/club/bytecodeviewer/util/FileDrop.java index e3cf56c6..2b74a904 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/util/FileDrop.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/util/FileDrop.java @@ -444,10 +444,10 @@ public class FileDrop { boolean support; try { final Class arbitraryDndClass = Class - .forName("DnDConstants"); + .forName("java.awt.dnd.DnDConstants"); support = true; } // end try - catch (final Exception e) { + catch (final Throwable t) { support = false; } // end catch supportsDnD = support;