aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMister Wrong <misterwrong@farnsworth.fritz.box>2020-03-18 17:21:11 +0100
committerMister Wrong <misterwrong@farnsworth.fritz.box>2020-03-18 17:21:11 +0100
commit1b5e0bcec17db397e1e93d87c90a116ad96b9a65 (patch)
tree8c4989e3fde7bc52968f2f8951cf8089d27c5500
parent59969034146af9d909f4ffbf708c513e0e33eb87 (diff)
downloadcalcusaurus-1b5e0bcec17db397e1e93d87c90a116ad96b9a65.tar.gz
calcusaurus-1b5e0bcec17db397e1e93d87c90a116ad96b9a65.tar.bz2
calcusaurus-1b5e0bcec17db397e1e93d87c90a116ad96b9a65.zip
fix:unneeded cast
-rw-r--r--src/main/java/net/diederickdevries/calcusaurus/util/RequestFocusListener.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/diederickdevries/calcusaurus/util/RequestFocusListener.java b/src/main/java/net/diederickdevries/calcusaurus/util/RequestFocusListener.java
index f19db22..96585be 100644
--- a/src/main/java/net/diederickdevries/calcusaurus/util/RequestFocusListener.java
+++ b/src/main/java/net/diederickdevries/calcusaurus/util/RequestFocusListener.java
@@ -32,7 +32,7 @@ public class RequestFocusListener implements AncestorListener {
32 public void ancestorAdded(final AncestorEvent e) { 32 public void ancestorAdded(final AncestorEvent e) {
33 final AncestorListener al = this; 33 final AncestorListener al = this;
34 SwingUtilities.invokeLater(() -> { 34 SwingUtilities.invokeLater(() -> {
35 JComponent component = (JComponent) e.getComponent(); 35 JComponent component = e.getComponent();
36 component.requestFocusInWindow(); 36 component.requestFocusInWindow();
37 component.removeAncestorListener(al); 37 component.removeAncestorListener(al);
38 }); 38 });