Adding JCombobox in Jtable and Getting that Row and Column in Swing java
问题 I have One Jtable in which i have added JComobox like this. TableColumn sportColumn = jTable1.getColumnModel().getColumn(2); comboBox = new JComboBox(); comboBox.addItem("Snowboarding"); comboBox.addItem("Rowing"); comboBox.addItem("Chasing toddlers"); comboBox.addItem("Speed reading"); comboBox.addItem("Teaching high school"); comboBox.addItem("None"); sportColumn.setCellEditor(new DefaultCellEditor(comboBox)); and i have added one mouse event of jtable like this. private void