I want to know how to add JCombobox in a column of a Jtable, please help
Printable View
I want to know how to add JCombobox in a column of a Jtable, please help
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
let me try thanks for ur suggestion
tablename.getColumnModel().getColumn(column number of jtable).setCellEditor(new DefaultCellEditor(new JComboBox()));
the above code add a jcombobox in particular column