• Post Reply Bookmark Topic Watch Topic
  • New Topic

jTable problemmmm

 
Momo Sawada
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello... i got a problem with my jtable... it doesn't display the column headings although it displays the table.... and why does it throw a cannotFindSymbolMethod setBackground....??? i think i imported the required packages and classes,.. i can't seem to see the real problem here..

anyway, please, can anyone help me???
thecode:


thank you very much!!!
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Regarding the setBackground method - what object do you think you're calling that on? Neither axionListener nor finalex have such a method.
 
Matthew Brown
Bartender
Posts: 4568
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the table - try it without line 164. You've already added studentTable to scrollPane, so you only need to add scrollPane to the main frame - don't try and add the studentTable as well or you're removing it from scrollPane. And that's the component that shows the column headings correctly.
 
Momo Sawada
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ohhhhh.. i see... thank you very much.... my program worked!!! thanks you!!!
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Would you please pick a much more meaningful titles in the future? problemmmm isn't an English word and it is "JTable" not "jTable".
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!