Package weka.gui

Class ETable

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, CellEditorListener, ListSelectionListener, RowSorterListener, TableColumnModelListener, TableModelListener, Scrollable

public class ETable extends JTable
A better-looking table than JTable. In particular, on Mac OS this looks more like a Cocoa table than the default Aqua LAF manages.
Author:
Elliott Hughes
See Also:
  • Constructor Details

    • ETable

      public ETable()
  • Method Details

    • paint

      public void paint(Graphics g)
      Paints empty rows too, after letting the UI delegate do its painting.
      Overrides:
      paint in class JComponent
    • getScrollableTracksViewportHeight

      public boolean getScrollableTracksViewportHeight()
      Changes the behavior of a table in a JScrollPane to be more like the behavior of JList, which expands to fill the available space. JTable normally restricts its size to just what's needed by its model.
      Specified by:
      getScrollableTracksViewportHeight in interface Scrollable
      Overrides:
      getScrollableTracksViewportHeight in class JTable
    • prepareRenderer

      public Component prepareRenderer(TableCellRenderer renderer, int row, int column)
      Shades alternate rows in different colors.
      Overrides:
      prepareRenderer in class JTable
    • getToolTipLocation

      public Point getToolTipLocation(MouseEvent e)
      Places tool tips over the cell they correspond to. MS Outlook does this, and it works rather well. Swing will automatically override our suggested location if it would cause the tool tip to go off the display.
      Overrides:
      getToolTipLocation in class JComponent