Search:

Type: Posts; User: bhk

Search: Search took 0.41 seconds.

  1. Thread: JTable problem

    by bhk
    Replies
    8
    Views
    370

    Re: JTable problem

    up
  2. Thread: JTable problem

    by bhk
    Replies
    8
    Views
    370

    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
    370

    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
    370

    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
    370

    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
    370

    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:
  7. Replies
    4
    Views
    261

    Re: Problem with Collection sort

    OK
    public class Message implements Comparable<Message>{
    ...
    }
  8. Replies
    4
    Views
    261

    Re: Problem with Collection sort

    probably i did some conceptual mistake 'cose i can't fix it
  9. Replies
    4
    Views
    261

    Problem with Collection sort

    Hi i just, got an error with this code; I'm trying to use sort from Collection.
    I can't see where is the problem... HELP!



    /**
    From Main: user.messages() returns an ArrayList<Message>

    */...
Results 1 to 9 of 9