Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Copying into JTextField from Excel

 
Paramita Verghese
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am working on a Swing application which allows the user the flexibility to copy data from an Excel spreadsheet and paste it into a set of JTextfields. The code looks something like this:



This used to work reasonably well in JDK1.3. But on running this with JDK 1.5, it behaves strangely. If I attempt to paste data from 10 cells in Excel into 10 individual JTextfields, only the first Textfield retains the data, all the other seem to get cleared out, but the cursor finally rests the 10th JTextField.

Any ideas, anybody?
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!