• 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic