Changeset 10173 in josm for trunk/src/org/openstreetmap/josm/gui/widgets
- Timestamp:
- 2016-05-10T14:54:38+02:00 (9 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/widgets
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/widgets/MultiSplitPane.java
r9970 r10173 384 384 385 385 @Override 386 public void keyReleased(KeyEvent e) { } 387 388 @Override 389 public void keyTyped(KeyEvent e) { } 386 public void keyReleased(KeyEvent e) { 387 // Do nothing 388 } 389 390 @Override 391 public void keyTyped(KeyEvent e) { 392 // Do nothing 393 } 390 394 } 391 395 -
trunk/src/org/openstreetmap/josm/gui/widgets/PopupMenuLauncher.java
r8513 r10173 4 4 import java.awt.Component; 5 5 import java.awt.Point; 6 import java.awt.event.FocusAdapter; 6 7 import java.awt.event.FocusEvent; 7 import java.awt.event.FocusListener;8 8 import java.awt.event.MouseAdapter; 9 9 import java.awt.event.MouseEvent; … … 95 95 protected void checkFocusAndShowMenu(final Component component, final MouseEvent evt) { 96 96 if (component != null && component.isFocusable() && !component.hasFocus() && component.requestFocusInWindow()) { 97 component.addFocusListener(new FocusListener() { 98 @Override 99 public void focusLost(FocusEvent e) {} 100 97 component.addFocusListener(new FocusAdapter() { 101 98 @Override 102 99 public void focusGained(FocusEvent e) { -
trunk/src/org/openstreetmap/josm/gui/widgets/QuadStateCheckBox.java
r9978 r10173 92 92 /** Do not let anyone add mouse listeners */ 93 93 @Override 94 public void addMouseListener(MouseListener l) { } 94 public void addMouseListener(MouseListener l) { 95 // Do nothing 96 } 95 97 96 98 /** … … 211 213 212 214 @Override 213 public void setArmed(boolean b) { } 214 215 @Override 216 public void setSelected(boolean b) { } 217 218 @Override 219 public void setPressed(boolean b) { } 215 public void setArmed(boolean b) { 216 // Do nothing 217 } 218 219 @Override 220 public void setSelected(boolean b) { 221 // Do nothing 222 } 223 224 @Override 225 public void setPressed(boolean b) { 226 // Do nothing 227 } 220 228 221 229 /** We disable focusing on the component when it is not enabled. */
Note:
See TracChangeset
for help on using the changeset viewer.