This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with JTable  RSS feed

 
Nilanjan Sahu
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've problem with inserting rows dynamically in JTable. How can I use DefaultTableModel in jtable if i've already set the model of the table. Can I use JList instead of JCombobox in jTable.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is just confusing information here without any concrete facts.

1)Do you want to know how to dynamically add rows to the table? Did you go through the DefaultTableModel API? Did you notice any methods which would let you add rows/ columns?
2)What kind of table model have you already provided? What problem are you facing here?
3) You can use any component which subclasses Component as the renderer. The TableCellRenderer#getTableCellRendererComponent() is expected to return a Component, so does the TableCellEditor.

If you give us more information on #1 and #2, it will help us help you.
Please tell us the details
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!