Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void a(){
- javax.swing.JComboBox comboBox = new javax.swing.JComboBox();
- ArrayList list = new ArrayList();
- list.add("Value 1");
- list.add("Value 2");
- for (int i = 0; i < list.size(); i++)
- {
- comboBox.addItem(list.get(i));
- }
- TableCellEditor.getTableCellEditorComponent(jTable1, comboBox, true, 0, 0).setCellEditor(new javax.swing.DefaultCellEditor(comboBox));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement