Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 62eab3d

Browse files
committed
Fix more deprecation warnings.
1 parent f6a9ff9 commit 62eab3d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@
123123
</target>
124124

125125
<target name="compile-tests" depends="compile">
126-
<javac srcdir="${test}" destdir="${build.test}" source="1.7" target="1.7" includeantruntime="false"
126+
<javac srcdir="${test}" destdir="${build.test}" source="11" target="11" includeantruntime="false"
127127
deprecation="yes">
128128
<classpath refid="test.classpath"/>
129129
<compilerarg value="-Xlint:unchecked"/>

src/test/java/nodebox/graphics/Playground.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
import java.awt.Color;
99
import java.awt.event.ActionEvent;
1010
import java.awt.event.ActionListener;
11+
import java.awt.event.InputEvent;
1112
import java.awt.event.KeyEvent;
1213
import java.io.StringReader;
1314

@@ -124,7 +125,7 @@ public void setResult(Object result) {
124125
private class RunAction extends AbstractAction {
125126
private RunAction() {
126127
super("Run");
127-
putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_R, Toolkit.getDefaultToolkit().getMenuShortcutKeyMaskEx()));
128+
putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_R, InputEvent.META_DOWN_MASK));
128129
}
129130

130131
@Override

0 commit comments

Comments
 (0)