Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Manju Tcs   on May 09 In Java Category.

  
Question Answered By: Brent Brown   on May 09

Well, the easiest way to fix it would be to move
all of the code  in the Main() constructor into a
method called  init() and then call the init() method
after you call setData() and before show().<br><br>Mind
you, that is the easy fix...it is not a very good
design though. In the long run  you should consider
writing your own TableModel implementation for use in
your JTable. It will give you a lot more control over
your table  data.

Share: 

 

This Question has 6 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Whats wrong with this code? Or get search suggestion and latest updates.


Tagged: