• 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: 17309
11
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
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!