View RSS Feed

Java Swing

Java Swing tutorials.

  1. Using Custom Renderers

    by , 04-26-2012 at 09:45 PM
    This section shows how cell renderer could be specified or created. “Type specific” cell renderer could be set by the help of JTable setDefaultRenderer method. Cells could be specified in a specific column by using a renderer. However, TableColumn method setCellRenderer is used usually by people. A “Cell specific” renderer could be specified by creation of subclass JTable.
    Image or text could easily be customized that are rendered by DefaultTableCellRenderer. Just one subclass is created ...