Ok, where are the comments in the code that describe what it is supposed to do?
Have you looked at the tutorial?
https://docs.oracle.com/javase/tutorial/uiswing/components/table.html
Linked...
Type: Posts; User: Norm
Ok, where are the comments in the code that describe what it is supposed to do?
Have you looked at the tutorial?
https://docs.oracle.com/javase/tutorial/uiswing/components/table.html
Linked...
Remove the mysql usages and replace them with hardcoded values so mysql is not needed for testing.
Can you make a small, complete program that compiles, executes and shows the problem?
Can you make a small, complete program that compiles and executes for testing to show the problem?
Did you try Google? Here's an interesting item:...
Look at the API doc for the class that you want to change color for to see if it has a method to do that.
http://docs.oracle.com/javase/8/docs/api/index.html
Do you have the code that will do this: set bg-color?
Then define a variable of type Color and assign if the desired color using if statements:
Color theColor = null;
...