• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable - URGENT !!!!  RSS feed

Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone,
I am trying to set a JComboBox in a Table cell using setDefaultCellEditor and it is setting too but the JComboBox is not visible when i add a row, but once clicks on that cell it becomes visible.
Can anybody help in telling how to make that visible.
I am using the folloeing code:
TableColumn.setCellEditor(new DefaultTableCellEditor(JComboBox));
do i require to set some other properties of this combobox. this is a non-editable combobox.
i need on more help : i have added three text feilds to a pannel, now i wish to add that pannel to a table cell. is there any way to do it as DefaultTableCellEditor()constructor allows only JTextFeilds,JcheckBox.
please help me as soon as possible.
Nidhi Madan
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!