• Post Reply Bookmark Topic Watch Topic
  • New Topic

Mass copy and paste from Excel to JTable  RSS feed

 
Eric Quick
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Everybody,

I am working in Netbeans and have created a JTable that, by default, is set to make its cells editable by double-click. I was wondering if anybody knew of a way to make the cells editable by the mass instead of one by one. Ideally I want to be able to copy many excel cells into a JTable instead of having to do it cell by cell.

Thanks,

Eric
 
Paul Clapham
Sheriff
Posts: 22374
42
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you were going to have a program do that copying, the normal way to do that would be to copy the data into the underlying table model. The GUI is for people to use.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!