Checking in some Java 5 changes

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@5002 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Allan Caplan
2007-01-29 01:49:41 +00:00
parent 47930af177
commit 7ee230efcf

View File

@ -433,8 +433,8 @@ public class Designer implements ClipboardOwner {
// // Compatible with >= JDK 1.4
// tabbed.setMnemonicAt(0, KeyEvent.VK_A);
// tabbed.setMnemonicAt(1, KeyEvent.VK_D);
setMnemonicAt.invoke(tabbed, new Object[]{NumericConstants.ZERO, new Integer(KeyEvent.VK_A)});
setMnemonicAt.invoke(tabbed, new Object[]{NumericConstants.ONE, new Integer(KeyEvent.VK_D)});
setMnemonicAt.invoke(tabbed, new Object[]{NumericConstants.ZERO, KeyEvent.VK_A});
setMnemonicAt.invoke(tabbed, new Object[]{NumericConstants.ONE, KeyEvent.VK_D});
}
} catch (NoSuchMethodException nsme) { // Runtime is < JDK 1.4
} catch (IllegalAccessException e) { // Runtime is >= JDK 1.4 but there was an error accessing the function