Search:

Type: Posts; User: bhk

Search: Search took 0.07 seconds.

  1. Thread: JTable problem

    by bhk
    Replies
    8
    Views
    1,316

    Re: JTable problem

    up
  2. Thread: JTable problem

    by bhk
    Replies
    8
    Views
    1,316

    Re: JTable problem

    public class MyTable extends TableModel{
    public static final int C = 12;
    public static final int R = 25;
    public String[][] data;

    public MyTable(String[] h, String[][] data) {
    ...
  3. Thread: JTable problem

    by bhk
    Replies
    8
    Views
    1,316

    Re: JTable problem

    My table model implements:
    public boolean isCellEditable(int rowIndex, int columnsIndex);
    public void removeTableModelListerner(TableModelListener s);
    public void...
  4. Thread: JTable problem

    by bhk
    Replies
    8
    Views
    1,316

    Re: JTable problem

    I got another question, i have to implement a Event Listener that catch the event of a edited cell in the tab.
    Where and how i can implements this?
  5. Thread: JTable problem

    by bhk
    Replies
    8
    Views
    1,316

    Re: JTable problem

    Ok, i found the error, the method public Class<?> getColumnClass(int columnIndex) was not implemented (throw new UnsupportedOperationException("Not supported yet."); ) but the program compiled and...
  6. Thread: JTable problem

    by bhk
    Replies
    8
    Views
    1,316

    JTable problem

    When i create a JTable in this way:


    JTable tab = new JTable(a,b);

    where a is an String [][] and b String[]

    The problem is set the TableModel, when i insert this line:
Results 1 to 6 of 6