View RSS Feed

Recent Blogs Posts

  1. JTable Introduction

    by , 04-26-2012 at 09:42 PM
    Many facilities are present in a JTable which makes the rendering and editing possible. But defaults are also provided for such features hence to setup the tables very easily. For instance, a table could be setup with 10 columns and 10 rows of numbers.
    Java Code:
          TableModel dataModel = new AbstractTableModel() {
              public int getColumnCount() { return 10; }
              public int getRowCount() { return 10;}
              public Object getValueAt(int row, int col)