Results 1 to 2 of 2
  1. #1
    kedia_rohit is offline Member
    Join Date
    Apr 2010
    Posts
    2
    Rep Power
    0

    Default JCheckbox in a Jtable Column

    In my Table I am getting the Check box by adding the method

    view plaincopy to clipboardprint?
    getColumnClass()
    {
    returning Boolean.CLass for col no 10,11,13

    for rest it is returning String.Class
    } This code is in my AbstractTableModel Class

    I am also setting Value in getValueAt() method{

    if Col==10
    then Check if Variable a == Y,
    return new Boolean(True)
    else
    return new Boolean(false)
    }


    but the problem is my that check box is not getting checked after loading the Table and neither it is getting checked on clicking on the Check box please help.

  2. #2
    Michael Dunn is offline Member
    Join Date
    Jul 2008
    Posts
    62
    Rep Power
    0

Similar Threads

  1. How to add a jcheckbox in jtable
    By lakshayghai in forum AWT / Swing
    Replies: 9
    Last Post: 04-14-2010, 11:32 PM
  2. split a jtable column
    By anilkumar_vist in forum Advanced Java
    Replies: 0
    Last Post: 12-14-2009, 10:29 AM
  3. split jtable column
    By anilkumar_vist in forum Advanced Java
    Replies: 3
    Last Post: 11-30-2009, 02:14 PM
  4. JCheckBox in JTable column
    By hind in forum New To Java
    Replies: 8
    Last Post: 01-04-2009, 07:40 PM
  5. How to sort column in JTable
    By johnt in forum AWT / Swing
    Replies: 3
    Last Post: 06-14-2008, 05:48 AM

Posting Permissions

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