Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable problem in different JDKs  RSS feed

Sri Rangan
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Our swing application is written and running smoothly in JDK1.2.2 (developed in VAJ) and now we tried to run the same app in JRE1.4
We have a JTable and we have a custom model class which extends from DefaultTableModel and implements PropertyChangeListener. This custom table model allows us to have row based approach.
When we run on JDK1.4, we get NullpointerException - getColumnCount() null , getRowCount() null.
I tried commenting the code to create the rows.It is creating the colums as below:

But the same stuff running fine in JDK1.2.2.
Thanks in Advance.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!