@Override public void doLayout() { super.doLayout(); if (myBusyIcon != null) { myBusyIcon.updateLocation(this); } }
@Override public void paint(Graphics g) { super.paint(g); if (myBusyIcon != null) { myBusyIcon.updateLocation(this); } }
@Override protected void paintChildren(Graphics g) { if (myEnableAntialiasing) { UISettings.setupAntialiasing(g); } super.paintChildren(g); }
@Override public void setModel(final TableModel model) { super.setModel(model); if (model instanceof SortableColumnModel) { final SortableColumnModel sortableModel = (SortableColumnModel) model; if (sortableModel.isSortable()) { final TableRowSorter<TableModel> rowSorter = createRowSorter(model); rowSorter.setSortsOnUpdates(isSortOnUpdates()); setRowSorter(rowSorter); final RowSorter.SortKey sortKey = sortableModel.getDefaultSortKey(); if (sortKey != null && sortKey.getColumn() >= 0 && sortKey.getColumn() < model.getColumnCount()) { if (sortableModel.getColumnInfos()[sortKey.getColumn()].isSortable()) { rowSorter.setSortKeys(Arrays.asList(sortKey)); } } } else { final RowSorter<? extends TableModel> rowSorter = getRowSorter(); if (rowSorter instanceof DefaultColumnInfoBasedRowSorter) { setRowSorter(null); } } } }
@Override protected void paintComponent(Graphics g) { if (myEnableAntialiasing) { UISettings.setupAntialiasing(g); } super.paintComponent(g); myEmptyText.paint(this, g); }
public void removeNotify() { final KeyboardFocusManager keyboardFocusManager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); //noinspection HardCodedStringLiteral keyboardFocusManager.removePropertyChangeListener("permanentFocusOwner", myEditorRemover); //noinspection HardCodedStringLiteral keyboardFocusManager.removePropertyChangeListener("focusOwner", myEditorRemover); super.removeNotify(); if (myBusyIcon != null) { remove(myBusyIcon); Disposer.dispose(myBusyIcon); myBusyIcon = null; } }
@Override public void updateUI() { super.updateUI(); myMinRowHeight = null; }