Re: JTable cell selection event

From: Srdjan Skrbic (shkrba_at_uns.ns.ac.yu)
Date: 10/28/03

  • Next message: eeyimaya: "Do you still choose java????"
    Date: Tue, 28 Oct 2003 15:14:23 +0100
    
    

    You must implement this method (in table model):
    public void setValueAt(Object val, int row, int col) !
    Whenever user exits the cell, this method is called.
    Does it works?

    Srdjan.

    "Don" <donalmurtagh@yahoo.co.uk> wrote in message
    news:aa1c6f54.0310271109.6609dd27@posting.google.com...
    > Greetings,
    >
    > I have an application that uses a JTable. When the user changes the
    > value in one of the cells and moves to another cell (with either the
    > mouse or keyboard), I want to do something with the new value of the
    > changed cell, any idea how I can capture this event?
    >
    > Thanks in advance,
    > Don


  • Next message: eeyimaya: "Do you still choose java????"

    Relevant Pages

    • Re: JTable cell selection event
      ... public void setValueAt(Object val, int row, int col)! ... Whenever user exits the cell, ... When the user changes the ...
      (comp.lang.java.programmer)
    • Re: JTable cell selection event
      ... public void setValueAt(Object val, int row, int col)! ... Whenever user exits the cell, ... When the user changes the ...
      (comp.lang.java.gui)
    • DataGrid EndEdit throws exception
      ... code to save the cell the user is editing. ... int row = dataGrid.CurrentCell.RowNumber; ... The exception is thrown ...
      (microsoft.public.dotnet.framework.adonet)
    • Re: Cell Width inside a Cell Renderer
      ... inherited and customized) DefaultTableCellRenderer object? ... I want change the display string dependend on the cell width, ... boolean hasFocus, int row, int column) { ...
      (comp.lang.java.help)
    • How can we set the horizontal alignment of JTable?
      ... And I want to set the horizonal alignment of cell. ... class MyCellRenderer extends JTextArea implements TableCellRenderer { ... public MyCellRenderer() { ... value, boolean isSelected, boolean hasFocus, int row, int ...
      (comp.lang.java.gui)