Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Mass copy and paste from Excel to JTable

 
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: 21892
36
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.
 
expectation is the root of all heartache - shakespeare. tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!