• Post Reply Bookmark Topic Watch Topic
  • New Topic

Copying into JTextField from Excel  RSS feed

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

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?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!