CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 1999
    Posts
    1

    JTable editing - how to prevent it



    Hi -


    I am trying to implement a JTable that will not allow the user to edit any of the cells. Does anybody have an idea of how to do it? I am at my wits end. Any help will be appreciated.


    - Florence

  2. #2
    Join Date
    Mar 1999
    Posts
    8

    Re: JTable editing - how to prevent it



    In the isCellEditable( int ,int) of your TableModel,always return false


    public boolean isCellEditable( int,int)

    {

    // return false for all cells

    return false;

    }



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured