1

I add the column value of JTable to JComBoBox full of null notifications

I tried passing the sub-variable and then adding jcombobox but it was not

I have test two ways but failed

1.TableColumn testColumn = tbclass.getColumnModel().getColumn(1);
testColumn.setCellEditor(new DefaultCellEditor(jcombobox));

2.tbclass.getColumnModel().getColumn(1).setCellEditor(new DefaultCellEditor(jcombobox));

The error is

java.lang.NullPointerExceptionat 
Moshe Slavin
  • 5,127
  • 5
  • 23
  • 38
Gia Huy
  • 11
  • 1
  • Can you please give a bit more details ? – ASHu2 Jun 11 '19 at 16:03
  • I added a column in Jtable to Jcombobox but I still get an error saying NullPoint can you help me? – Gia Huy Jun 12 '19 at 02:48
  • Could you just complete the error in the question ? And also here is a reference to your question : [here](https://stackoverflow.com/questions/14355712/adding-jcombobox-to-a-jtable-cell) – ASHu2 Jun 12 '19 at 03:40

0 Answers0