1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-09-02 18:33:13 +02:00

list and address deprecations in java

This commit is contained in:
soloturn
2023-09-30 17:28:46 +02:00
parent 9c2404ec26
commit ba51d7b569
4 changed files with 5 additions and 3 deletions

View File

@@ -98,7 +98,7 @@ public class ContextMenuMouseListener extends MouseAdapter {
@Override
public void mouseClicked(MouseEvent e) {
if (e.getModifiers() == InputEvent.BUTTON3_MASK) {
if (e.getModifiersEx() == InputEvent.BUTTON3_DOWN_MASK) {
if (!(e.getSource() instanceof JTextComponent)) {
return;
}

View File

@@ -63,7 +63,7 @@ class HistoryMenuMouseListener extends MouseAdapter {
@Override
public void mouseClicked(MouseEvent e) {
if (e.getModifiers() == InputEvent.BUTTON3_MASK) {
if (e.getModifiersEx() == InputEvent.BUTTON3_DOWN_MASK) {
if (!(e.getSource() instanceof JTable)) {
return;
}

View File

@@ -61,7 +61,7 @@ class QueueMenuMouseListener extends MouseAdapter {
@SuppressWarnings("unchecked")
@Override
public void mouseClicked(MouseEvent e) {
if (e.getModifiers() == InputEvent.BUTTON3_MASK) {
if (e.getModifiersEx() == InputEvent.BUTTON3_DOWN_MASK) {
if (!(e.getSource() instanceof JList)) {
return;
}