Forums Register Login

jTable problemmmm

+Pie Number of slices to send: Send
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!!!
+Pie Number of slices to send: Send
Regarding the setBackground method - what object do you think you're calling that on? Neither axionListener nor finalex have such a method.
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
ohhhhh.. i see... thank you very much.... my program worked!!! thanks you!!!
+Pie Number of slices to send: Send
Would you please pick a much more meaningful titles in the future? problemmmm isn't an English word and it is "JTable" not "jTable".
I will suppress my every urge. But not this shameless plug:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1247 times.
Similar Threads
String to char to string to int: more efficient way?
help on reading textfield on 1 class from another class and using it to create a file
closing a JDialog
ActionListener Problems
only one selector
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 18:49:25.