• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

confusing method signature

 
James Du
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, ranchers.
I found a method of Class DefaultTableModel whose signature kind of confused me.


I think it sould be

anyone has some comments?
James Du
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, it gives you an option to send whatever type of object array you want, kind of like sending it a DataInfo[], and it understanding how to use it. Hmmm, sounds like a cool idea, maybe I hsould look into using something like that in my assignment. Oh, well I already did.
And in setHeadingsArray they do the same thing, so If I sent a FieldInfo[] in there, I can get headings real easy.
OK, I had my fun.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic