Results 1 to 4 of 4
  1. #1
    maneesh is offline Member
    Join Date
    Feb 2009
    Posts
    3
    Rep Power
    0

    Default JComboBox in Jtable

    I want to know how to add JCombobox in a column of a Jtable, please help

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,202
    Rep Power
    19

    Default

    Read the API for JTable and follow the link to the Sun tutorial on "How to Use Tables" where you will find an example of this.

    db

  3. #3
    maneesh is offline Member
    Join Date
    Feb 2009
    Posts
    3
    Rep Power
    0

    Default

    let me try thanks for ur suggestion

  4. #4
    Join Date
    Oct 2009
    Posts
    88
    Rep Power
    0

    Thumbs up

    tablename.getColumnModel().getColumn(column number of jtable).setCellEditor(new DefaultCellEditor(new JComboBox()));


    the above code add a jcombobox in particular column

Similar Threads

  1. JComboBox
    By pinks_70986 in forum New To Java
    Replies: 2
    Last Post: 02-19-2009, 05:26 PM
  2. JComboBox
    By Fosters in forum AWT / Swing
    Replies: 0
    Last Post: 08-10-2008, 01:22 PM
  3. Replies: 2
    Last Post: 05-15-2008, 10:15 AM
  4. Help with jComboBox
    By Marcus in forum AWT / Swing
    Replies: 2
    Last Post: 07-01-2007, 11:08 PM
  5. jcombobox
    By Freddie in forum AWT / Swing
    Replies: 4
    Last Post: 05-11-2007, 12: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
  •