equal
deleted
inserted
replaced
47 import javax.swing.border.*; |
47 import javax.swing.border.*; |
48 |
48 |
49 import java.text.NumberFormat; |
49 import java.text.NumberFormat; |
50 import java.text.DateFormat; |
50 import java.text.DateFormat; |
51 import java.text.MessageFormat; |
51 import java.text.MessageFormat; |
|
52 import java.util.List; |
52 |
53 |
53 import javax.print.attribute.*; |
54 import javax.print.attribute.*; |
54 import javax.print.PrintService; |
55 import javax.print.PrintService; |
55 import sun.reflect.misc.ReflectUtil; |
56 import sun.reflect.misc.ReflectUtil; |
56 |
57 |
4417 resizeAndRepaint(); |
4418 resizeAndRepaint(); |
4418 return; |
4419 return; |
4419 } |
4420 } |
4420 |
4421 |
4421 if (sortManager != null) { |
4422 if (sortManager != null) { |
4422 sortedTableChanged(null, e); |
4423 List<? extends RowSorter.SortKey> sortKeys = |
4423 return; |
4424 sortManager.sorter.getSortKeys(); |
|
4425 if (sortKeys.size() != 0 && |
|
4426 sortKeys.get(0).getSortOrder() != SortOrder.UNSORTED) { |
|
4427 sortedTableChanged(null, e); |
|
4428 return; |
|
4429 } |
4424 } |
4430 } |
4425 |
4431 |
4426 // The totalRowHeight calculated below will be incorrect if |
4432 // The totalRowHeight calculated below will be incorrect if |
4427 // there are variable height rows. Repaint the visible region, |
4433 // there are variable height rows. Repaint the visible region, |
4428 // but don't return as a revalidate may be necessary as well. |
4434 // but don't return as a revalidate may be necessary as well. |