예제 #1
0
 public void changeColumnValueRadix(int i) {
   if (i == 0) return;
   TestVector vec = getModel().getVector();
   switch (vec.columnRadix[i - 1]) {
     case 2:
       vec.columnRadix[i - 1] = 10;
       break;
     case 10:
       vec.columnRadix[i - 1] = 16;
       break;
     default:
       vec.columnRadix[i - 1] = 2;
       break;
   }
   table.modelChanged();
 }
예제 #2
0
 public void modelChanged(Model oldModel, Model newModel) {
   if (oldModel != null) oldModel.removeModelListener(myListener);
   if (newModel != null) newModel.addModelListener(myListener);
   table.setModel(newModel == null ? null : this);
 }
예제 #3
0
 public void localeChanged() {
   table.modelChanged();
 }