Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 7th, 2012  |  syntax: None  |  size: 0.72 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to allow trackwheel to scroll all direction?
  2. while (dy > 0) {
  3.             if (focusIndex + columnwidth.length >= getFieldCount()) {
  4.                 return false;
  5.             } else {
  6.                 Field f = getField(focusIndex + columnwidth.length);
  7.                 if (f.isFocusable()) {
  8.                     f.setFocus();
  9.                     dy--;
  10.                 }
  11.             }
  12.         }
  13.  
  14. while (dy < 0) {
  15.             if (focusIndex - columnwidth.length < 0) {
  16.                 return false;
  17.             } else {
  18.                 Field f = getField(focusIndex - columnwidth.length);
  19.  
  20.                 if (f.isFocusable()) {
  21.                     f.setFocus();
  22.                     dy++;
  23.                 }
  24.             }
  25.         }